mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Tighten up templates/hostapd/iiab-hotspot-off just a bit?
This commit is contained in:
parent
671343b9e9
commit
07a63f3b8a
1 changed files with 3 additions and 5 deletions
|
@ -11,13 +11,11 @@ systemctl disable iiab-clone-wifi.service
|
||||||
systemctl disable iiab-wifi-test.service
|
systemctl disable iiab-wifi-test.service
|
||||||
systemctl stop iiab-clone-wifi.service
|
systemctl stop iiab-clone-wifi.service
|
||||||
echo " IIAB hotspot access point Disabled"
|
echo " IIAB hotspot access point Disabled"
|
||||||
exit 0
|
#exit 0
|
||||||
{% else %}
|
{% else %}
|
||||||
{% if is_raspbian %}
|
{% if is_raspbian %}
|
||||||
# hotspot-off before ap0_updown
|
# hotspot-off before ap0_updown
|
||||||
sed -i -e "s/^denyinterfaces/#denyinterfaces/" /etc/dhcpcd.conf
|
sed -i -e "s/^denyinterfaces/#denyinterfaces/" /etc/dhcpcd.conf
|
||||||
systemctl disable hostapd
|
|
||||||
systemctl stop hostapd
|
|
||||||
#systemctl disable dnsmasq
|
#systemctl disable dnsmasq
|
||||||
#systemctl stop dnsmasq
|
#systemctl stop dnsmasq
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
|
@ -35,8 +33,8 @@ systemctl restart dhcpcd
|
||||||
if [ -f /etc/NetworkManager/conf.d/wifi-manage.conf ]; then
|
if [ -f /etc/NetworkManager/conf.d/wifi-manage.conf ]; then
|
||||||
sed -i -e "s|managed=0|managed=1|" /etc/NetworkManager/conf.d/wifi-manage.conf
|
sed -i -e "s|managed=0|managed=1|" /etc/NetworkManager/conf.d/wifi-manage.conf
|
||||||
fi
|
fi
|
||||||
echo -e "\nPlease reboot to enable upstream WiFi access.\n"
|
echo -e "\nIf you're enabling upstream WiFi, please reboot now.\n"
|
||||||
exit 0
|
#exit 0
|
||||||
{% endif %}
|
{% endif %}
|
||||||
#is_raspbian
|
#is_raspbian
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue