From: florian Date: Sat, 23 Feb 2008 17:18:04 +0000 (+0000) Subject: Fix init script (#3057) X-Git-Url: http://207.154.207.93/?a=commitdiff_plain;h=770889bf6135adb2c86f5793dab7008b1bd16753;p=packages.git Fix init script (#3057) git-svn-id: svn://svn.openwrt.org/openwrt/packages@10520 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/net/dhcp/files/dhcpd.init b/net/dhcp/files/dhcpd.init index 15159bb8e..ea16f01be 100644 --- a/net/dhcp/files/dhcpd.init +++ b/net/dhcp/files/dhcpd.init @@ -15,7 +15,7 @@ start() { /usr/sbin/dhcpd -q -cf $config_file -lf $lease_file - if [ $$ -eq 0 ]; then + if [ $? -eq 0 ]; then echo " isc-dhcpd failed to start" fi } @@ -25,7 +25,7 @@ stop() { if [ -e $pid_file ]; then kill `cat $pid_file` - if [ $$ -eq 0 ]; then + if [ $? -eq 0 ]; then echo " PID " `cat $pid_file` not found echo " Is the DHCP server running?" fi