1
0
Fork 0
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:
A Holt 2023-04-22 10:03:57 -04:00 committed by GitHub
parent 07a63f3b8a
commit d1a7ab2b74
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"