1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-12 19:22:24 +00:00

Merge pull request #2406 from jvonau/hook-tune

tuning of 52c0f2aaea [internal WiFi hotspot is not working]
This commit is contained in:
A Holt 2020-05-13 14:45:53 -04:00 committed by GitHub
commit 224001d0ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,7 +26,7 @@ if [ "$interface" = "wlan0" ]; then
fi
# spams the logging
#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"
# keeps ap0 up so hostapd works
ip link set ap0 up