1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

Merge pull request #400 from iiab/master

sync from iiab:master
This commit is contained in:
A Holt 2020-05-16 14:45:31 -04:00 committed by GitHub
commit bc08147956
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -27,7 +27,7 @@
# hostapd_enabled: True # hostapd_enabled: True
# Above set in /opt/iiab/iiab/vars/default_vars.yml # Above set in /opt/iiab/iiab/vars/default_vars.yml
hostapd_wait: 5 hostapd_wait: 10
host_wireless_n: False host_wireless_n: False
driver_name: nl80211 driver_name: nl80211
ap0_mac_addr: b8:27:99:12:34:56 ap0_mac_addr: b8:27:99:12:34:56

View file

@ -26,7 +26,7 @@ if [ "$interface" = "wlan0" ]; then
fi fi
# spams the logging # spams the logging
#syslog info "50-iiab set ap0 spam $REASON" #syslog info "50-iiab set ap0 spam $REASON"
if [ -e /sys/class/net/ap0 ] && [ "$reason" = "BOUND" ]; then if [ -e /sys/class/net/ap0 ] && ([ "$reason" = "CARRIER" ] || [ "$reason" = "NOCARRIER" ] || [ "$reason" = "BOUND" ]); then
syslog info "50-iiab set ap0 up $REASON" syslog info "50-iiab set ap0 up $REASON"
# keeps ap0 up so hostapd works # keeps ap0 up so hostapd works
ip link set ap0 up ip link set ap0 up