1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-12 19:22:24 +00:00

Better discription of current configuration when networking is disabled

This commit is contained in:
Jerry Vonau 2022-09-22 17:30:04 -05:00
parent 359dcbe60e
commit f2ace322cc
2 changed files with 10 additions and 0 deletions

View file

@ -1,4 +1,8 @@
#!/bin/bash
{% if not network_enabled %}
echo -e "Networking role disabled\n"
echo -e "For details, see: https://github.com/iiab/iiab/pull/3302\n"
{% else %}
sed -i -e "s/^HOSTAPD_ENABLED.*/HOSTAPD_ENABLED=False/" {{ iiab_env_file }}
systemctl disable hostapd
systemctl stop hostapd
@ -36,3 +40,4 @@ exit 0
{% endif %}
#wifi_up_down
{% endif %}
{% endif %}

View file

@ -1,4 +1,8 @@
#!/bin/bash
{% if not network_enabled %}
echo -e "Networking role disabled\n"
echo -e "For details, see: https://github.com/iiab/iiab/pull/3302\n"
{% else %}
{% if not can_be_ap %}
echo -e "\nUH-OH: Your Wi-Fi firmware doesn't support AP mode, according to 'iw list'\n"
echo -e "If you add Wi-Fi hardware, run 'cd /opt/iiab/iiab' then 'sudo ./iiab-network'\n"
@ -45,3 +49,4 @@ exit 0
#wifi_up_down
{% endif %}
{% endif %}
{% endif %}