2 DAEMON=/usr/sbin/udhcpd
4 DESC="Busybox UDHCP Server"
5 ARGS="/etc/udhcpd.conf"
7 test -f $DAEMON || exit 1
13 echo -n "starting $DESC: $NAME... "
14 if [ ! -f /etc/udhcpd.conf ]; then
15 echo "error: /etc/udhcpd.conf is missing."
18 /sbin/start-stop-daemon -S -b -n $NAME -a $DAEMON -- $ARGS
22 echo -n "stopping $DESC: $NAME... "
23 /sbin/start-stop-daemon -K -n $NAME
27 echo "restarting $DESC: $NAME... "
33 echo -n "reloading $DESC: $NAME... "
34 killall -HUP $(basename ${DAEMON})
38 echo "Usage: $0 {start|stop|restart|reload}"