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

iiab-hotspot-on sets "hostapd_enabled = True" in /etc/iiab/iiab.ini

This commit is contained in:
A Holt 2018-01-10 23:41:18 -05:00 committed by GitHub
parent de2550ed57
commit c138027c08
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,3 +8,12 @@ systemctl restart dhcpcd
systemctl restart networking
systemctl start hostapd
systemctl start dhcpd
# Temporary promiscuous-mode workaround for RPi's WiFi "10SEC disease"
# Disable "promiscuous" on wlan0 when AP (i.e. no WiFi gateway)
# SEE ALSO iiab-hotspot-off + /usr/libexec/iiab-startup.sh
# https://github.com/iiab/iiab/issues/638#issuecomment-355455454
if grep -qi raspbian /etc/*release; then
ip link set dev wlan0 promisc off
sed -i -e "s/hostapd_enabled.*/hostapd_enabled = True/" /etc/iiab/iiab.ini
fi