Skip to content

Commit

Permalink
fix issue #6 First booting with a connected ethernet cable makes wicd…
Browse files Browse the repository at this point in the history
… daemon start with an empty wireless interface
  • Loading branch information
nachoparker committed Apr 21, 2017
1 parent 1483c72 commit cb7c5ca
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions etc/nextcloudpi-config.d/nc-wifi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
}

Expand Down

0 comments on commit cb7c5ca

Please sign in to comment.