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

Enable Promiscuous WiFi on boot IFF AP's OFF

This commit is contained in:
A Holt 2018-01-10 22:42:09 -05:00 committed by GitHub
parent 2e8bb9c00d
commit c438c13fb1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,8 +5,17 @@ if [ ! -f /etc/iiab/uuid ]; then
uuidgen > /etc/iiab/uuid
fi
# Experimental/Temporary workaround for WiFi "10SEC disease"
# Temporary promiscuous-mode workaround for WiFi "10SEC disease"
# https://github.com/iiab/iiab/issues/638#issuecomment-355455454
if grep -qi raspbian /etc/*release; then ip link set dev wlan0 promisc on; fi
if [[ $(grep -i raspbian /etc/*release) &&
($(grep "hostapd_enabled = False" /etc/iiab/config_vars.yml) ||
((! $(grep "hostapd_enabled = True" /etc/iiab/config_vars.yml)) &&
$(grep "hostapd_enabled = False" /etc/iiab/iiab.ini)
)
)
]];
then
ip link set dev wlan0 promisc on
fi
exit 0