2 DAEMON=/usr/sbin/hostapd
5 ARGS="/etc/hostapd.conf"
7 test -f $DAEMON || exit 0
13 echo -n "starting $DESC: $NAME... "
14 start-stop-daemon -S -b -n $NAME -a $DAEMON -- $ARGS
18 echo -n "stopping $DESC: $NAME... "
19 start-stop-daemon -K -n $NAME
23 echo "restarting $DESC: $NAME... "
29 echo -n "reloading $DESC: $NAME... "
30 killall -HUP $(basename ${DAEMON})
34 echo "Usage: $0 {start|stop|restart|reload}"