From: Florian Fainelli Date: Sat, 27 Sep 2008 10:49:17 +0000 (+0000) Subject: Fix named.init check against returned values by bind (#4039) X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=be0cb2db5ff2aad4eef52402738a9c16ed16e032;p=openwrt%2Fsvn-archive%2Fpackages.git Fix named.init check against returned values by bind (#4039) SVN-Revision: 12724 --- diff --git a/net/bind/files/named.init b/net/bind/files/named.init index 99b8e0b3f..b845e898a 100644 --- a/net/bind/files/named.init +++ b/net/bind/files/named.init @@ -9,7 +9,7 @@ start() { /usr/sbin/named -c $config_file - if [ $$ -eq 0 ] + if [ $? -eq 0 ] then echo " isc-bind failed to start" fi @@ -21,7 +21,7 @@ stop() { then kill `cat $pid_file` - if [ $$ -eq 0 ] + if [ $? -eq 0 ] then echo " PID " `cat $pid_file` not found echo " Is the named server running?"