3 # Written by Miquel van Smoorenburg <miquels@cistron.nl>.
4 # Modified for Debian GNU/Linux by Ian Murdock <imurdock@gnu.ai.mit.edu>
5 # and Axel Beckert <abe@deuxchevaux.org>.
9 # Required-Start: $remote_fs $syslog
10 # Required-Stop: $remote_fs $syslog
11 # Default-Start: 2 3 4 5
13 # Short-Description: Start busybox udhcpd at boot time
16 PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
17 DAEMON=/usr/sbin/udhcpd
19 DESC="very small Busybox based DHCP server"
20 DHCPD_OPTS="-S" # Additional options given to the server
22 test -x $DAEMON || exit 0
24 # Include defaults if available
25 if [ -f /etc/default/udhcpd ] ; then
29 if [ "$DHCPD_ENABLED" = "no" ]; then
30 echo $NAME: Disabled. Edit /etc/default/udhcpd to enable it.
38 echo -n "Starting $DESC: "
39 start-stop-daemon --start --verbose --pidfile /var/run/$NAME.pid \
40 --oknodo --exec $DAEMON -- $DHCPD_OPTS
44 echo -n "Stopping $DESC: "
45 start-stop-daemon --stop --verbose --pidfile /var/run/$NAME.pid \
46 --oknodo --exec $DAEMON
56 echo "Usage: $N {start|stop|restart|force-reload}" >&2