#!/bin/sh # /etc/rc.d/rc.dhcpd # Start/stop/restart the DHCP server. # To make DHCP daemon start automatically at boot, make this # file executable: chmod 755 /etc/rc.d/rc.dhcpd case "$1" in 'start') /usr/sbin/dhcpd -cf /etc/dhcpd.conf wlan0 ;; 'stop') killall -s 9 dhcpd ;; 'restart') killall -s 9 dhcpd /usr/sbin/dhcpd -cf /etc/dhcpd.conf wlan0 ;; *) echo "usage $0 start|stop|restart" ;; esac