wireless-tools.if-pre-up - move setting of the ESSID to the end of the script,
authorMike Westerhof <mwester@dls.net>
Wed, 21 Nov 2007 00:38:08 +0000 (00:38 +0000)
committerMike Westerhof <mwester@dls.net>
Wed, 21 Nov 2007 00:38:08 +0000 (00:38 +0000)
because certain chipsets (ZD1211) use that as the "commit" operation.

packages/wireless-tools/wireless-tools/wireless-tools.if-pre-up

index 11fbced..2518a5c 100755 (executable)
@@ -60,10 +60,6 @@ if [ -n "$IF_WIRELESS_RETRY" ]; then
   $IWCONFIG "$IFACE" retry $IF_WIRELESS_RETRY
 fi
 
-if [ -n "$IF_WIRELESS_ESSID" ]; then
-  $IWCONFIG "$IFACE" essid "$IF_WIRELESS_ESSID"
-fi
-
 if [ -n "$IF_WIRELESS_NICK" ]; then
   $IWCONFIG "$IFACE" nick "$IF_WIRELESS_NICK"
 fi
@@ -116,6 +112,10 @@ if [ -n "$IF_WIRELESS_CHANNEL" ]; then
   $IWCONFIG "$IFACE" channel $IF_WIRELESS_CHANNEL
 fi
 
+if [ -n "$IF_WIRELESS_ESSID" ]; then
+  $IWCONFIG "$IFACE" essid "$IF_WIRELESS_ESSID"
+fi
+
 if [ -n "$IF_WIRELESS_COMMIT" ]; then
   $IWCONFIG "$IFACE" commit
 fi