Fix ps bug

This commit is contained in:
Nick Peng
2019-06-20 22:36:04 +08:00
parent ef50ea9c5e
commit 99972c36ad

View File

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