aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifup-eth
diff options
context:
space:
mode:
authorMiloslav Trmac <mitr@volny.cz>2006-07-28 03:56:50 +0000
committerMiloslav Trmac <mitr@volny.cz>2006-07-28 03:56:50 +0000
commit7795bfc3de4bdf0bc1dbd24b4a12a0fbcbff4085 (patch)
tree81c5b766ecf0e6bceba47cd2b0b5329b9309e771 /sysconfig/network-scripts/ifup-eth
parent5ae8842118c2b266d771df3722b84bd954ce3b6f (diff)
downloadinitscripts-7795bfc3de4bdf0bc1dbd24b4a12a0fbcbff4085.tar
initscripts-7795bfc3de4bdf0bc1dbd24b4a12a0fbcbff4085.tar.gz
initscripts-7795bfc3de4bdf0bc1dbd24b4a12a0fbcbff4085.tar.bz2
initscripts-7795bfc3de4bdf0bc1dbd24b4a12a0fbcbff4085.tar.xz
initscripts-7795bfc3de4bdf0bc1dbd24b4a12a0fbcbff4085.zip
Support (ifup vlan1:0) (#193133)
Diffstat (limited to 'sysconfig/network-scripts/ifup-eth')
-rwxr-xr-xsysconfig/network-scripts/ifup-eth4
1 files changed, 3 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifup-eth b/sysconfig/network-scripts/ifup-eth
index e36691a2..cbea96a2 100755
--- a/sysconfig/network-scripts/ifup-eth
+++ b/sysconfig/network-scripts/ifup-eth
@@ -114,7 +114,9 @@ fi
# Bonding initialization. For DHCP, we need to enslave the devices early,
# so it can actually get an IP.
-if [ "${TYPE}" = "Bonding" ] || ethtool -i $DEVICE 2>/dev/null| grep -q "driver: bonding" ; then
+if [ "$ISALIAS" = no ] && \
+ { [ "${TYPE}" = "Bonding" ] \
+ || ethtool -i $DEVICE 2>/dev/null | grep -q "driver: bonding"; } then
/sbin/ip link set dev ${DEVICE} down
/sbin/ip link set dev ${DEVICE} up
[ -n "${LINKDELAY}" ] && /bin/sleep ${LINKDELAY}