aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2007-10-08 17:53:08 +0000
committerBill Nottingham <notting@redhat.com>2007-10-08 17:53:08 +0000
commit3d8fc36dba315b09cd97d829fca68267ebcebc64 (patch)
treed56ea9efdf09ed586459eb3b2387d9cf3f9189a9 /sysconfig
parent6256bf4ec1827333c7e15648bce3fd8490d5ede9 (diff)
downloadinitscripts-3d8fc36dba315b09cd97d829fca68267ebcebc64.tar
initscripts-3d8fc36dba315b09cd97d829fca68267ebcebc64.tar.gz
initscripts-3d8fc36dba315b09cd97d829fca68267ebcebc64.tar.bz2
initscripts-3d8fc36dba315b09cd97d829fca68267ebcebc64.tar.xz
initscripts-3d8fc36dba315b09cd97d829fca68267ebcebc64.zip
set mode before bringing link up (#254046, <linville@redhat.com>)
Diffstat (limited to 'sysconfig')
-rwxr-xr-xsysconfig/network-scripts/ifup-wireless7
1 files changed, 4 insertions, 3 deletions
diff --git a/sysconfig/network-scripts/ifup-wireless b/sysconfig/network-scripts/ifup-wireless
index 36bfd8c5..18416b1b 100755
--- a/sysconfig/network-scripts/ifup-wireless
+++ b/sysconfig/network-scripts/ifup-wireless
@@ -36,13 +36,14 @@
# Only meant to be called from ifup.
-# Set link up (some cards require this.)
-/sbin/ip link set dev ${DEVICE} up
-
# Mode need to be first : some settings apply only in a specific mode !
if [ -n "$MODE" ] ; then
iwconfig $DEVICE mode $MODE
fi
+
+# Set link up (some cards require this.)
+/sbin/ip link set dev ${DEVICE} up
+
# This is a bit hackish, but should do the job right...
if [ -n "$ESSID" -o -n "$MODE" ] ; then
NICKNAME=`/bin/hostname`