relocate packages on recipes-base/recipes-enigma2/recipes-wlan.
[vuplus_openvuplus_3.0] / meta-openvuplus / recipes-connectivity / hostap / hostap-daemon-0.7.3 / init
1 #!/bin/sh
2 DAEMON=/usr/sbin/hostapd
3 NAME=hostapd
4 DESC="HOSTAP Daemon"
5 ARGS="/etc/hostapd.conf -B"
6
7 test -f $DAEMON || exit 0
8
9 set -e
10
11 case "$1" in
12     start)
13         echo -n "Starting $DESC: "
14         start-stop-daemon -S -x $DAEMON -- $ARGS
15         echo "$NAME."
16         ;;
17     stop)
18         echo -n "Stopping $DESC: "
19         start-stop-daemon -K -x $DAEMON
20         echo "$NAME."
21         ;;
22     restart)
23         $0 stop
24         $0 start
25         ;;
26     reload)
27         echo -n "Reloading $DESC: "
28         killall -HUP $(basename ${DAEMON})
29         echo "$NAME."
30         ;;
31     *)
32         echo "Usage: $0 {start|stop|restart|reload}"
33         exit 1
34         ;;
35 esac
36
37 exit 0