Fix message issue
This commit is contained in:
@@ -52,9 +52,9 @@ clear_iptable()
|
|||||||
|
|
||||||
restart_dnsmasq()
|
restart_dnsmasq()
|
||||||
{
|
{
|
||||||
CMD="`ps | grep " dnsmasq" | grep -v grep`"
|
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`"
|
CMD="`ps ax | grep dnsmasq | grep -v grep 2>/dev/null`"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$CMD" ]; then
|
if [ -z "$CMD" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user