2 DAEMON=/usr/sbin/hostapd
5 ARGS="/etc/hostapd.conf -B"
7 test -f $DAEMON || exit 0
13 echo -n "Starting $DESC: "
14 start-stop-daemon -S -x $DAEMON -- $ARGS
18 echo -n "Stopping $DESC: "
19 start-stop-daemon -K -x $DAEMON
27 echo -n "Reloading $DESC: "
28 killall -HUP $(basename ${DAEMON})
32 echo "Usage: $0 {start|stop|restart|reload}"