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