diff options
author | Erik Troan <ewt@redhat.com> | 2000-12-20 21:19:49 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 2000-12-20 21:19:49 +0000 |
commit | ee13586e5205878f407ff031e36d43dd6536fcd0 (patch) | |
tree | 5703170e8241c84aa7644199e3c2fd6fb6c627af /sysconfig/network-scripts/ifdown | |
parent | c88aa60d716dc0518dcf63df8a1ea342a8c53f3b (diff) | |
download | initscripts-ee13586e5205878f407ff031e36d43dd6536fcd0.tar initscripts-ee13586e5205878f407ff031e36d43dd6536fcd0.tar.gz initscripts-ee13586e5205878f407ff031e36d43dd6536fcd0.tar.bz2 initscripts-ee13586e5205878f407ff031e36d43dd6536fcd0.tar.xz initscripts-ee13586e5205878f407ff031e36d43dd6536fcd0.zip |
added wireless support
Diffstat (limited to 'sysconfig/network-scripts/ifdown')
-rwxr-xr-x | sysconfig/network-scripts/ifdown | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sysconfig/network-scripts/ifdown b/sysconfig/network-scripts/ifdown index 5042c28c..60b778c7 100755 --- a/sysconfig/network-scripts/ifdown +++ b/sysconfig/network-scripts/ifdown @@ -52,6 +52,11 @@ while ! check_device_down && [ "$waited" -lt 50 ] ; do waited=$(($waited+1)) done +# don't leave an outdated key sitting around +if [ -n "${WIRELESS_ENC_KEY}" -a -x /sbin/iwconfig ]; then + /sbin/iwconfig ${DEVICE} enc 0 +fi + if [ "$retcode" = 0 ] ; then /etc/sysconfig/network-scripts/ifdown-post $CONFIG # do NOT use $? because ifdown should return whether or not |