mirror of
https://github.com/iiab/iiab.git
synced 2025-02-15 04:32:11 +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 stop iiab-clone-wifi.service
|
||||
echo " IIAB hotspot access point Disabled"
|
||||
exit 0
|
||||
#exit 0
|
||||
{% else %}
|
||||
{% if is_raspbian %}
|
||||
# hotspot-off before ap0_updown
|
||||
sed -i -e "s/^denyinterfaces/#denyinterfaces/" /etc/dhcpcd.conf
|
||||
systemctl disable hostapd
|
||||
systemctl stop hostapd
|
||||
#systemctl disable dnsmasq
|
||||
#systemctl stop dnsmasq
|
||||
systemctl daemon-reload
|
||||
|
@ -35,8 +33,8 @@ systemctl restart dhcpcd
|
|||
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
|
||||
fi
|
||||
echo -e "\nPlease reboot to enable upstream WiFi access.\n"
|
||||
exit 0
|
||||
echo -e "\nIf you're enabling upstream WiFi, please reboot now.\n"
|
||||
#exit 0
|
||||
{% endif %}
|
||||
#is_raspbian
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in a new issue