aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2007-04-13 22:37:44 +0000
committerBill Nottingham <notting@redhat.com>2007-04-13 22:37:44 +0000
commitad5d3be641cf0f825848eecb03a2f6b8dc330e0c (patch)
tree6ddf69dd23374c3c718ca434e58397f4dd450ab2 /sysconfig/network-scripts
parent91579a7ab9b8861eab1fe8927b71af6daf8fa2f8 (diff)
downloadinitscripts-ad5d3be641cf0f825848eecb03a2f6b8dc330e0c.tar
initscripts-ad5d3be641cf0f825848eecb03a2f6b8dc330e0c.tar.gz
initscripts-ad5d3be641cf0f825848eecb03a2f6b8dc330e0c.tar.bz2
initscripts-ad5d3be641cf0f825848eecb03a2f6b8dc330e0c.tar.xz
initscripts-ad5d3be641cf0f825848eecb03a2f6b8dc330e0c.zip
properly quote arguments (#234756)
Diffstat (limited to 'sysconfig/network-scripts')
-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