diff options
author | Bill Nottingham <notting@redhat.com> | 2004-08-25 17:37:52 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2004-08-25 17:37:52 +0000 |
commit | e838eed9daa6d61a142727f37bcefb80018401b1 (patch) | |
tree | 4f32440583322b05e9e8d062fbe208de8bf50688 /sysconfig/network-scripts/ifup-wireless | |
parent | d083cce787af7fb7a0a208534d27f6ed372033d6 (diff) | |
download | initscripts-e838eed9daa6d61a142727f37bcefb80018401b1.tar initscripts-e838eed9daa6d61a142727f37bcefb80018401b1.tar.gz initscripts-e838eed9daa6d61a142727f37bcefb80018401b1.tar.bz2 initscripts-e838eed9daa6d61a142727f37bcefb80018401b1.tar.xz initscripts-e838eed9daa6d61a142727f37bcefb80018401b1.zip |
support multiple keys (#127957)
Diffstat (limited to 'sysconfig/network-scripts/ifup-wireless')
-rwxr-xr-x | sysconfig/network-scripts/ifup-wireless | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sysconfig/network-scripts/ifup-wireless b/sysconfig/network-scripts/ifup-wireless index a3c64dcd..706b8aa2 100755 --- a/sysconfig/network-scripts/ifup-wireless +++ b/sysconfig/network-scripts/ifup-wireless @@ -53,8 +53,13 @@ fi if [ -n "$RATE" ] ; then iwconfig $DEVICE rate $RATE fi -if [ -n "$KEY" ] ; then - iwconfig $DEVICE key "$KEY" +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 "$KEY" ] && iwconfig $DEVICE key "$KEY" else iwconfig $DEVICE key off fi |