diff options
author | nachoparker <nacho@ownyourbits.com> | 2017-04-21 14:15:05 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2017-04-21 14:15:05 +0300 |
commit | cb7c5cab750df83dae4ea5911bd8ac8afb9340ec (patch) | |
tree | c7bbcb4ae1a6f8357918c6761a310b490256123f /etc/nextcloudpi-config.d/nc-wifi.sh | |
parent | 1483c724ef30db9c36366ff91ef2b143bcf59d10 (diff) |
fix issue #6 First booting with a connected ethernet cable makes wicd daemon start with an empty wireless interfacev0.7.2
Diffstat (limited to 'etc/nextcloudpi-config.d/nc-wifi.sh')
-rwxr-xr-x | etc/nextcloudpi-config.d/nc-wifi.sh | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/etc/nextcloudpi-config.d/nc-wifi.sh b/etc/nextcloudpi-config.d/nc-wifi.sh index 23cdc44a..0ab9d7ed 100755 --- a/etc/nextcloudpi-config.d/nc-wifi.sh +++ b/etc/nextcloudpi-config.d/nc-wifi.sh @@ -26,6 +26,16 @@ install() configure() { + # 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 + sed -i 's|^wireless_interface = None|wireless_interface = wlan0|' /etc/wicd/manager-settings.conf + + # First booting with a connected ethernet cable produces + # wicd daemon to generate 'wireless_interface = '. (issue #6) + # It does not hurt to restart it to wlan0 for RPi3 & zero w + sed -i 's|^wireless_interface = $|wireless_interface = wlan0|' /etc/wicd/manager-settings.conf + systemctl stop dhcpcd systemctl disable dhcpcd systemctl enable wicd @@ -42,11 +52,6 @@ configure() 6) C to connect" \ 20 90 - # 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 - sed -i 's|^wireless_interface = None|wireless_interface = wlan0|' /etc/wicd/manager-settings.conf - wicd-curses } |