diff options
author | Bill Nottingham <notting@redhat.com> | 2010-11-29 16:14:03 -0500 |
---|---|---|
committer | Petr Lautrbach <plautrba@redhat.com> | 2010-12-06 15:42:04 +0100 |
commit | 9eb05ee238224f84c3322d6331b72b378de05480 (patch) | |
tree | 262be655425f772c910eaae5f0c83f3ac3a78b89 | |
parent | 57fcce60b5b8fdc81011411032f26818aa483ace (diff) | |
download | initscripts-9eb05ee238224f84c3322d6331b72b378de05480.tar initscripts-9eb05ee238224f84c3322d6331b72b378de05480.tar.gz initscripts-9eb05ee238224f84c3322d6331b72b378de05480.tar.bz2 initscripts-9eb05ee238224f84c3322d6331b72b378de05480.tar.xz initscripts-9eb05ee238224f84c3322d6331b72b378de05480.zip |
Allow 0 as a vlan tag. (#624704, #635360)
-rwxr-xr-x | sysconfig/network-scripts/ifup | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifup b/sysconfig/network-scripts/ifup index d7bd6721..56b2d6e9 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}?' |