1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

Merge pull request #3373 from jvonau/feedback

Better description of current configuration when networking is disabled
This commit is contained in:
A Holt 2022-09-22 18:58:52 -04:00 committed by GitHub
commit 139aa2846c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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 %}