mirror of
https://github.com/iiab/iiab.git
synced 2025-02-15 04:32:11 +00:00
iiab-hotspot-off sets "hostapd_enabled = False" in /etc/iiab/iiab.ini
This commit is contained in:
parent
12b02ae991
commit
35aab19383
1 changed files with 7 additions and 2 deletions
|
@ -8,6 +8,11 @@ systemctl daemon-reload
|
||||||
systemctl restart dhcpcd
|
systemctl restart dhcpcd
|
||||||
systemctl restart networking
|
systemctl restart networking
|
||||||
|
|
||||||
# Experimental/Temporary workaround for WiFi "10SEC disease"
|
# Temporary promiscuous-mode workaround for RPi's WiFi "10SEC disease"
|
||||||
|
# Set wlan0 to promiscuous when needed as gateway (i.e. AP's OFF)
|
||||||
|
# SEE ALSO iiab-hotspot-on + /usr/libexec/iiab-startup.sh
|
||||||
# https://github.com/iiab/iiab/issues/638#issuecomment-355455454
|
# 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 -qi raspbian /etc/*release; then
|
||||||
|
ip link set dev wlan0 promisc on
|
||||||
|
sed -i -e "s/hostapd_enabled.*/hostapd_enabled = False/" /etc/iiab/iiab.ini
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in a new issue