Fix init script (#3057)

git-svn-id: svn://svn.openwrt.org/openwrt/packages@10520 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
florian 2008-02-23 17:18:04 +00:00
parent 4b1be42288
commit 770889bf61

View File

@ -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