From 229b40c7d922f820341f8963e796f01159141ad1 Mon Sep 17 00:00:00 2001 From: Darren 'Tadgy' Austin Date: Tue, 9 Mar 2021 17:11:58 +0000 Subject: rc.wireless: don't leave interfaces in up state as it prevents SLAAC. --- rc.wireless | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'rc.wireless') diff --git a/rc.wireless b/rc.wireless index 52559ff..00df8c3 100644 --- a/rc.wireless +++ b/rc.wireless @@ -326,11 +326,10 @@ if [ "$WPA" = "wpa_supplicant" ] || [ "$WPA" = "wpaxsupplicant" ] && [ -x ${SUPP echo "$0: WPA authentication did not complete, try running '/etc/rc.d/rc.inet1 ${INTERFACE}_start' in a few seconds." | $LOGGER fi # Bring interface up to avoid 'not ready' errors when calling iwconfig - $IFCOMMAND up - sleep 3 - + # Tadgy: don't bring interface up as it interferes with SLAAC in rc.inet1 + # $IFCOMMAND up + # sleep 3 else - # ESSID need to be last: most devices re-perform the scanning/discovery # when this is set, and things like encryption keys had better be # defined if we want to discover the right set of APs/nodes. @@ -344,5 +343,7 @@ else echo "$0: $IWCOMMAND essid \"$ESSID\"" | $LOGGER $IWCOMMAND essid "$ESSID" fi - + # Tadgy: don't leave interface up as this causes problems for SLAAC in rc.inet1 + $IFCOMMAND down + sleep 3 fi -- cgit v1.2.3