aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifup
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2010-11-29 16:14:03 -0500
committerBill Nottingham <notting@redhat.com>2010-11-29 16:14:03 -0500
commit4e1743c1d9de2f21fdedacca16a483025e537e1d (patch)
treee5afc71180ef87cb83bae41626b3267bf99b5e5f /sysconfig/network-scripts/ifup
parent35396a9718b7457e999f00a92da9d5d5f4ccfd42 (diff)
downloadinitscripts-4e1743c1d9de2f21fdedacca16a483025e537e1d.tar
initscripts-4e1743c1d9de2f21fdedacca16a483025e537e1d.tar.gz
initscripts-4e1743c1d9de2f21fdedacca16a483025e537e1d.tar.bz2
initscripts-4e1743c1d9de2f21fdedacca16a483025e537e1d.tar.xz
initscripts-4e1743c1d9de2f21fdedacca16a483025e537e1d.zip
Allow 0 as a vlan tag. (#624704, #635360)
Diffstat (limited to 'sysconfig/network-scripts/ifup')
-rwxr-xr-xsysconfig/network-scripts/ifup2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifup b/sysconfig/network-scripts/ifup
index 27469e19..1eaabab8 100755
--- a/sysconfig/network-scripts/ifup
+++ b/sysconfig/network-scripts/ifup
@@ -75,7 +75,7 @@ if [ "${VLAN}" = "yes" ] && [ "$ISALIAS" = "no" ]; then
VID=""
MATCH='^(eth|hsi|bond)[0-9]+\.[0-9]{1,4}$'
if [[ "${DEVICE}" =~ $MATCH ]]; then
- VID=$(echo "${DEVICE}" | LC_ALL=C sed 's/^[a-z0-9]*\.0*//')
+ VID=$(echo "${DEVICE}" | LC_ALL=C sed 's/^[a-z0-9]*\.0*\([0-9]\+\)/\1/')
PHYSDEV=${DEVICE%.*}
fi
MATCH='^vlan[0-9]{1,4}?'