]>
Commit | Line | Data |
---|---|---|
07603508 CS |
1 | #!/bin/sh |
2 | . /etc/sysconfig/rc | |
3 | . ${rc_functions} | |
4 | ||
040ec360 | 5 | CHANNEL="6" |
c3d9a16d | 6 | COUNTRY="00" |
54359730 CS |
7 | TXPOWER="auto" |
8 | INTERFACE="blue0" | |
79ef49bd | 9 | MACMODE="0" |
79ef49bd | 10 | |
b9694349 | 11 | eval $(/usr/local/bin/readhash /var/ipfire/wlanap/settings) |
54359730 | 12 | |
54359730 | 13 | case "${1}" in |
8aa49c15 | 14 | start) |
7429ec82 | 15 | boot_mesg "Starting hostapd... " |
62cd95c2 | 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 | 39 | esac |