# HG changeset patch # User Pascal Bellard # Date 1270739864 -7200 # Node ID c028db9bb88208bd15cea9dc42e4455acd575213 # Parent 4f09bc470f254ad1baa1cdfc1c022bfb7edb06a9 busybox: tipo in /etc/init.d/udhcpd diff -r 4f09bc470f25 -r c028db9bb882 busybox/stuff/udhcpd --- a/busybox/stuff/udhcpd Thu Apr 08 10:53:57 2010 +0200 +++ b/busybox/stuff/udhcpd Thu Apr 08 17:17:44 2010 +0200 @@ -16,16 +16,17 @@ case "$1" in start) - if active_pidfile $PIDFILE udhcpc ; then + if active_pidfile $PIDFILE udhcpd ; then echo "$NAME already running." exit 1 fi echo -n "Starting $DESC: $NAME... " $DAEMON $OPTIONS status + pidof udhcpd > $PIDFILE ;; stop) - if ! active_pidfile $PIDFILE udhcpc ; then + if ! active_pidfile $PIDFILE udhcpd ; then echo "$NAME is not running." exit 1 fi @@ -34,7 +35,7 @@ status ;; restart) - if ! active_pidfile $PIDFILE udhcpc ; then + if ! active_pidfile $PIDFILE udhcpd ; then echo "$NAME is not running." exit 1 fi @@ -43,6 +44,7 @@ sleep 2 $DAEMON $OPTIONS status + pidof udhcpd > $PIDFILE ;; *) echo ""