Fix message issue

This commit is contained in:
Nick Peng
2019-02-24 23:22:47 +08:00
parent 02213de0ee
commit 8e1b404ba0

View File

@@ -52,9 +52,9 @@ clear_iptable()
restart_dnsmasq()
{
CMD="`ps | grep " dnsmasq" | grep -v grep`"
CMD="`ps | grep " dnsmasq" | grep -v grep 2>/dev/null`"
if [ -z "$CMD" ]; then
CMD="`ps ax | grep dnsmasq | grep -v grep`"
CMD="`ps ax | grep dnsmasq | grep -v grep 2>/dev/null`"
fi
if [ -z "$CMD" ]; then