summaryrefslogtreecommitdiffstats
path: root/openembedded/packages/hostap/hostap-daemon-0.4.4/init
diff options
context:
space:
mode:
Diffstat (limited to 'openembedded/packages/hostap/hostap-daemon-0.4.4/init')
-rw-r--r--openembedded/packages/hostap/hostap-daemon-0.4.4/init39
1 files changed, 0 insertions, 39 deletions
diff --git a/openembedded/packages/hostap/hostap-daemon-0.4.4/init b/openembedded/packages/hostap/hostap-daemon-0.4.4/init
deleted file mode 100644
index b0736c0baa..0000000000
--- a/openembedded/packages/hostap/hostap-daemon-0.4.4/init
+++ /dev/null
@@ -1,39 +0,0 @@
1#!/bin/sh
2DAEMON=/usr/sbin/hostapd
3NAME=httpd
4DESC="HOSTAP Daemon"
5ARGS="/etc/hostapd.conf"
6
7test -f $DAEMON || exit 0
8
9set -e
10
11case "$1" in
12 start)
13 echo -n "starting $DESC: $NAME... "
14 start-stop-daemon -S -b -n $NAME -a $DAEMON -- $ARGS
15 echo "done."
16 ;;
17 stop)
18 echo -n "stopping $DESC: $NAME... "
19 start-stop-daemon -K -n $NAME
20 echo "done."
21 ;;
22 restart)
23 echo "restarting $DESC: $NAME... "
24 $0 stop
25 $0 start
26 echo "done."
27 ;;
28 reload)
29 echo -n "reloading $DESC: $NAME... "
30 killall -HUP $(basename ${DAEMON})
31 echo "done."
32 ;;
33 *)
34 echo "Usage: $0 {start|stop|restart|reload}"
35 exit 1
36 ;;
37esac
38
39exit 0