diff options
author | nachoparker <nacho@ownyourbits.com> | 2017-05-23 19:37:15 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2017-05-23 19:44:47 +0300 |
commit | 06423bf4ae86ec695d4dcde482f1f316a79e5cd6 (patch) | |
tree | 94bfd8f1fbf0f7e2b35c0866137b0245fe3d9e11 /etc/nextcloudpi-config.d/nc-wifi.sh | |
parent | 0479dbbea887698f0632967ed28e05a8d7d78405 (diff) |
if ACTIVE=yes by default, launch configure for that script on updatev0.11.1
Diffstat (limited to 'etc/nextcloudpi-config.d/nc-wifi.sh')
-rw-r--r-- | etc/nextcloudpi-config.d/nc-wifi.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/etc/nextcloudpi-config.d/nc-wifi.sh b/etc/nextcloudpi-config.d/nc-wifi.sh index f13abec3..a59d0a9d 100644 --- a/etc/nextcloudpi-config.d/nc-wifi.sh +++ b/etc/nextcloudpi-config.d/nc-wifi.sh @@ -15,6 +15,7 @@ # More at https://ownyourbits.com/ # +ACTIVE_=no DESCRIPTION="Configure your Wi-Fi connection" install() @@ -40,6 +41,15 @@ show_info() configure() { + [[ $ACTIVE_ != "yes" ]] && { + systemctl stop wicd + systemctl disable wicd + systemctl start dhcpcd + systemctl enable dhcpcd + systemctl start nextcloud-domain + return; + } + # Installation in QEMU (without a wireless interface) produces # wicd installation to generate 'wireless_interface = None'. # It does not hurt to restart it to wlan0 for RPi3 & zero w |