]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/initscripts/packages/hostapd
hostapd: Drop custom configuration from initscript
[people/pmueller/ipfire-2.x.git] / src / initscripts / packages / hostapd
1 #!/bin/sh
2 . /etc/sysconfig/rc
3 . ${rc_functions}
4
5 CHANNEL="6"
6 COUNTRY="00"
7 TXPOWER="auto"
8 INTERFACE="blue0"
9 MACMODE="0"
10
11 eval $(/usr/local/bin/readhash /var/ipfire/wlanap/settings)
12
13 case "${1}" in
14 start)
15 boot_mesg "Starting hostapd... "
16 loadproc /usr/bin/hostapd -B /etc/hostapd.conf
17 ;;
18
19 stop)
20 boot_mesg "Stopping hostapd..."
21 killproc /usr/bin/hostapd
22 evaluate_retval
23 ;;
24
25 restart)
26 ${0} stop
27 sleep 1
28 ${0} start
29 ;;
30
31 status)
32 statusproc /usr/bin/hostapd
33 ;;
34
35 *)
36 echo "Usage: ${0} {start|stop|restart|status}"
37 exit 1
38 ;;
39 esac