summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarren 'Tadgy' Austin <darren@afterdark.org.uk>2021-03-09 17:11:58 +0000
committerDarren 'Tadgy' Austin <darren@afterdark.org.uk>2021-03-09 17:11:58 +0000
commit229b40c7d922f820341f8963e796f01159141ad1 (patch)
tree8abe9cc1e2950c13ddee8ddf39b691557cfdd9c7
parent39ff28c3f36673e373dac6d2a8a12f0bf0dfceff (diff)
downloadslacknetsetup-229b40c7d922f820341f8963e796f01159141ad1.tar.xz
rc.wireless: don't leave interfaces in up state as it prevents SLAAC.tadgy
-rw-r--r--rc.wireless11
1 files changed, 6 insertions, 5 deletions
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