wok-next rev 5233
busybox: tipo in /etc/init.d/udhcpd
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Apr 08 17:17:44 2010 +0200 (2010-04-08) |
parents | 4f09bc470f25 |
children | 7534e9548281 |
files | busybox/stuff/udhcpd |
line diff
1.1 --- a/busybox/stuff/udhcpd Thu Apr 08 10:53:57 2010 +0200 1.2 +++ b/busybox/stuff/udhcpd Thu Apr 08 17:17:44 2010 +0200 1.3 @@ -16,16 +16,17 @@ 1.4 1.5 case "$1" in 1.6 start) 1.7 - if active_pidfile $PIDFILE udhcpc ; then 1.8 + if active_pidfile $PIDFILE udhcpd ; then 1.9 echo "$NAME already running." 1.10 exit 1 1.11 fi 1.12 echo -n "Starting $DESC: $NAME... " 1.13 $DAEMON $OPTIONS 1.14 status 1.15 + pidof udhcpd > $PIDFILE 1.16 ;; 1.17 stop) 1.18 - if ! active_pidfile $PIDFILE udhcpc ; then 1.19 + if ! active_pidfile $PIDFILE udhcpd ; then 1.20 echo "$NAME is not running." 1.21 exit 1 1.22 fi 1.23 @@ -34,7 +35,7 @@ 1.24 status 1.25 ;; 1.26 restart) 1.27 - if ! active_pidfile $PIDFILE udhcpc ; then 1.28 + if ! active_pidfile $PIDFILE udhcpd ; then 1.29 echo "$NAME is not running." 1.30 exit 1 1.31 fi 1.32 @@ -43,6 +44,7 @@ 1.33 sleep 2 1.34 $DAEMON $OPTIONS 1.35 status 1.36 + pidof udhcpd > $PIDFILE 1.37 ;; 1.38 *) 1.39 echo ""