mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Tighten up templates/hostapd/iiab-hotspot-on just a bit?
This commit is contained in:
parent
07a63f3b8a
commit
d1a7ab2b74
1 changed files with 5 additions and 5 deletions
|
@ -14,8 +14,7 @@ sed -i -e "s/^HOSTAPD_ENABLED.*/HOSTAPD_ENABLED=True/" {{ iiab_env_file }}
|
||||||
systemctl enable iiab-clone-wifi.service
|
systemctl enable iiab-clone-wifi.service
|
||||||
systemctl enable hostapd
|
systemctl enable hostapd
|
||||||
systemctl enable iiab-wifi-test.service
|
systemctl enable iiab-wifi-test.service
|
||||||
echo -e "\nPlease reboot to activate hostapd feature.\n"
|
#exit 0
|
||||||
exit 0
|
|
||||||
{% else %}
|
{% else %}
|
||||||
{% if is_raspbian %}
|
{% if is_raspbian %}
|
||||||
# just do what we have always done in hotspot-on
|
# just do what we have always done in hotspot-on
|
||||||
|
@ -38,13 +37,12 @@ systemctl start dnsmasq
|
||||||
# ip link set dev wlan0 promisc off
|
# ip link set dev wlan0 promisc off
|
||||||
#fi
|
#fi
|
||||||
{% else %}
|
{% else %}
|
||||||
#ubuntu
|
#ubuntu (or Mint, or pure Debian?)
|
||||||
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=1|managed=0|" /etc/NetworkManager/conf.d/wifi-manage.conf
|
sed -i -e "s|managed=1|managed=0|" /etc/NetworkManager/conf.d/wifi-manage.conf
|
||||||
fi
|
fi
|
||||||
systemctl enable hostapd
|
systemctl enable hostapd
|
||||||
echo -e "\nPlease reboot to activate hostapd feature.\n"
|
#exit 0
|
||||||
exit 0
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
#is_raspbian
|
#is_raspbian
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -53,3 +51,5 @@ exit 0
|
||||||
#can_be_ap
|
#can_be_ap
|
||||||
{% endif %}
|
{% endif %}
|
||||||
#network_enabled
|
#network_enabled
|
||||||
|
|
||||||
|
echo -e "\nPlease reboot to activate hostapd feature.\n"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue