aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsysconfig/network-scripts/ifup-wireless10
1 files changed, 5 insertions, 5 deletions
diff --git a/sysconfig/network-scripts/ifup-wireless b/sysconfig/network-scripts/ifup-wireless
index b44f77a0..32bd1423 100755
--- a/sysconfig/network-scripts/ifup-wireless
+++ b/sysconfig/network-scripts/ifup-wireless
@@ -55,11 +55,11 @@ if [ -n "$RATE" ] ; then
iwconfig $DEVICE rate "$RATE"
fi
if [ -n "$KEY" -o -n "$KEY1" -o -n "$KEY2" -o -n "$KEY3" -o -n "$KEY4" ] ; then
- [ -n "$KEY1" ] && iwconfig $DEVICE key [1] $KEY1
- [ -n "$KEY2" ] && iwconfig $DEVICE key [2] $KEY2
- [ -n "$KEY3" ] && iwconfig $DEVICE key [3] $KEY3
- [ -n "$KEY4" ] && iwconfig $DEVICE key [4] $KEY4
- [ -n "$DEFAULTKEY" ] && iwconfig $DEVICE key [${DEFAULTKEY}]
+ [ -n "$KEY1" ] && iwconfig $DEVICE key "[1]" $KEY1
+ [ -n "$KEY2" ] && iwconfig $DEVICE key "[2]" $KEY2
+ [ -n "$KEY3" ] && iwconfig $DEVICE key "[3]" $KEY3
+ [ -n "$KEY4" ] && iwconfig $DEVICE key "[4]" $KEY4
+ [ -n "$DEFAULTKEY" ] && iwconfig $DEVICE key "[${DEFAULTKEY}]"
[ -n "$KEY" ] && iwconfig $DEVICE key $KEY
else
iwconfig $DEVICE key off