7 # enable wlan module of collectd
8 sed -i -e "s|#LoadPlugin wireless|LoadPlugin wireless|g" /etc
/collectd.conf
9 /usr
/local
/bin
/wlanconfig ath0 destroy
10 /usr
/local
/bin
/wlanconfig blue0 create wlandev wifi0 wlanmode ap
11 /usr
/sbin
/iwconfig blue0 channel
05
12 /usr
/bin
/hostapd
-P /var
/run
/hostapd
/etc
/hostapd.conf
&
17 # Just make sure when going down the first time blue0 nw values are ignored
18 sed -i -e 's/^ACTION=="add", SUBSYSTEM=="net", SYSFS{address}=="*", NAME="blue0"*/#ACTION=="add", SUBSYSTEM=="net", SYSFS{address}=="*", NAME="blue0"*/' /etc
/udev
/rules.d
/30-persistent-network.rules
19 /usr
/local
/bin
/wlanconfig blue0 destroy
20 killproc
/usr
/bin
/hostapd
31 statusproc
/usr
/bin
/hostapd
35 echo "Usage: ${0} {start|stop|restart|status}"