aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifup
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
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')
-rwxr-xr-xsysconfig/network-scripts/ifup4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysconfig/network-scripts/ifup b/sysconfig/network-scripts/ifup
index 1406a74e..f9b7f51c 100755
--- a/sysconfig/network-scripts/ifup
+++ b/sysconfig/network-scripts/ifup
@@ -60,9 +60,9 @@ then
fi
# Ethernet 802.1Q VLAN support
-if [ -x /sbin/vconfig -a "${VLAN}" = "yes" ]; then
+if [ -x /sbin/vconfig -a "${VLAN}" = "yes" -a "$ISALIAS" = "no" ]; then
VID=""
- if echo ${DEVICE} | LANG=C egrep -v '(:)' | LANG=C egrep -q '(eth|bond)[0-9][0-9]*\.[0-9][0-9]?[0-9]?[0-9]?'; then
+ if echo ${DEVICE} | LANG=C egrep -q '(eth|bond)[0-9][0-9]*\.[0-9][0-9]?[0-9]?[0-9]?'; then
VID="`echo ${DEVICE} | \
LANG=C egrep '(eth|bond)[0-9]+\.[0-9][0-9]?[0-9]?[0-9]?$' | \
LANG=C sed 's/^[a-z0-9]*\.//g;s/^0*//'`"