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:
parent
2e8bb9c00d
commit
c438c13fb1
1 changed files with 11 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue