]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame_incremental - src/initscripts/packages/hostapd
hostapd: Drop custom configuration from initscript
[people/pmueller/ipfire-2.x.git] / src / initscripts / packages / hostapd
... / ...
CommitLineData
1#!/bin/sh
2. /etc/sysconfig/rc
3. ${rc_functions}
4
5CHANNEL="6"
6COUNTRY="00"
7TXPOWER="auto"
8INTERFACE="blue0"
9MACMODE="0"
10
11eval $(/usr/local/bin/readhash /var/ipfire/wlanap/settings)
12
13case "${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 ;;
39esac