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:
parent
de2550ed57
commit
c138027c08
1 changed files with 9 additions and 0 deletions
|
@ -8,3 +8,12 @@ systemctl restart dhcpcd
|
||||||
systemctl restart networking
|
systemctl restart networking
|
||||||
systemctl start hostapd
|
systemctl start hostapd
|
||||||
systemctl start dhcpd
|
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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue