mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-25 18:32:57 +02:00
fixed hostapd init
This commit is contained in:
@@ -15,6 +15,9 @@ case "${1}" in
|
||||
sed -i -e "s|#LoadPlugin wireless|LoadPlugin wireless|g" /etc/collectd.conf
|
||||
|
||||
# Set Atheros Cards to master mode
|
||||
if [ -d /proc/net/madwifi/ath0/ ]; then
|
||||
/usr/bin/wlanconfig ath0 destroy > /dev/null
|
||||
fi
|
||||
/usr/bin/wlanconfig $INTERFACE destroy > /dev/null
|
||||
/usr/bin/wlanconfig $INTERFACE create wlandev wifi0 wlanmode ap > /dev/null
|
||||
|
||||
|
||||
Reference in New Issue
Block a user