From 751c1e3a98776cab66d47f652750248b5006d819 Mon Sep 17 00:00:00 2001 From: Nick Peng Date: Sun, 14 Jul 2019 18:19:49 +0800 Subject: [PATCH] Fix dnsmasq not found issue --- package/optware/S50smartdns | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/optware/S50smartdns b/package/optware/S50smartdns index 4d18aa0..e73a58f 100644 --- a/package/optware/S50smartdns +++ b/package/optware/S50smartdns @@ -52,11 +52,11 @@ clear_iptable() 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 CMD="`ps | grep "/usr/sbin/dnsmasq" | grep -v grep 2>/dev/null`" 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`" if [ -z "$CMD" ]; then CMD="`ps ax | grep /usr/sbin/dnsmasq | grep -v grep 2>/dev/null`" fi