aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2010-01-05 13:46:26 -0500
committerBill Nottingham <notting@redhat.com>2010-01-05 13:46:26 -0500
commit8a9bb8cc2543a4568ee2a9f240edd090ff932bbd (patch)
tree3069c619ac9f03d384d94023edf82c9b55aadf56
parentb81d66945bd09b0711f615ac5fbcf7c423078fee (diff)
downloadinitscripts-8a9bb8cc2543a4568ee2a9f240edd090ff932bbd.tar
initscripts-8a9bb8cc2543a4568ee2a9f240edd090ff932bbd.tar.gz
initscripts-8a9bb8cc2543a4568ee2a9f240edd090ff932bbd.tar.bz2
initscripts-8a9bb8cc2543a4568ee2a9f240edd090ff932bbd.tar.xz
initscripts-8a9bb8cc2543a4568ee2a9f240edd090ff932bbd.zip
Move is_wireless after MACADDR/MTU setting, as it brings the link up.
-rwxr-xr-xsysconfig/network-scripts/ifup-eth5
1 files changed, 3 insertions, 2 deletions
diff --git a/sysconfig/network-scripts/ifup-eth b/sysconfig/network-scripts/ifup-eth
index fac5f0e4..1fa871db 100755
--- a/sysconfig/network-scripts/ifup-eth
+++ b/sysconfig/network-scripts/ifup-eth
@@ -83,8 +83,6 @@ is_available ${REALDEVICE} || {
exit 1
}
-# is the device wireless? If so, configure wireless device specifics
-is_wireless_device ${DEVICE} && . ./ifup-wireless
# this isn't the same as the MAC in the configuration filename. It is
# available as a configuration option in the config file, forcing the kernel
@@ -96,6 +94,9 @@ if [ -n "${MTU}" ]; then
ip link set dev ${DEVICE} mtu ${MTU}
fi
+# is the device wireless? If so, configure wireless device specifics
+is_wireless_device ${DEVICE} && . ./ifup-wireless
+
# slave device?
if [ "${SLAVE}" = yes -a "${ISALIAS}" = no -a "${MASTER}" != "" ]; then
grep -wq "${DEVICE}" /sys/class/net/${MASTER}/bonding/slaves || {