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

didn't like * so split up

This commit is contained in:
Jerry Vonau 2020-05-13 02:13:44 -05:00
parent 2ed7c34579
commit 1adb4997a6

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" = "*CARRIER" ]; then
if [ -e /sys/class/net/ap0 ] && [ "$reason" = "CARRIER" ] || [ "$reason" = "NOCARRIER" ]; then
syslog info "50-iiab set ap0 up $REASON"
# keeps ap0 up so hostapd works
ip link set ap0 up