From 4e3ffeed885a07703dbae60fdc0afc70248be11e Mon Sep 17 00:00:00 2001 From: nacho Date: Fri, 21 Apr 2017 13:15:05 +0200 Subject: [PATCH] fix issue #6 First booting with a connected ethernet cable makes wicd daemon start with an empty wireless interface --- etc/nextcloudpi-config.d/nc-wifi.sh | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/etc/nextcloudpi-config.d/nc-wifi.sh b/etc/nextcloudpi-config.d/nc-wifi.sh index 23cdc44af..0ab9d7edc 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 }