diff options
author | Bill Nottingham <notting@redhat.com> | 2010-11-29 16:14:03 -0500 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2010-11-29 16:14:44 -0500 |
commit | 76865d9915d0db1a152d8bbff0a0f78d6a0a57e9 (patch) | |
tree | 45ff15363b9efd36ef8a94679b5172e97511bded /sysconfig/network-scripts/ifup | |
parent | 3eeea81b1d4dea6435e847fe2a34004d1b6dbb9c (diff) | |
download | initscripts-76865d9915d0db1a152d8bbff0a0f78d6a0a57e9.tar initscripts-76865d9915d0db1a152d8bbff0a0f78d6a0a57e9.tar.gz initscripts-76865d9915d0db1a152d8bbff0a0f78d6a0a57e9.tar.bz2 initscripts-76865d9915d0db1a152d8bbff0a0f78d6a0a57e9.tar.xz initscripts-76865d9915d0db1a152d8bbff0a0f78d6a0a57e9.zip |
Allow 0 as a vlan tag. (#624704, #635360)
Diffstat (limited to 'sysconfig/network-scripts/ifup')
-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 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}?' |