diff options
author | Matt Domsch <Matt_Domsch@dell.com> | 2011-02-10 15:07:28 -0600 |
---|---|---|
committer | Petr Lautrbach <plautrba@redhat.com> | 2011-03-10 12:41:20 +0100 |
commit | 368c219887e76664b8c3a374c9dd3086d0078759 (patch) | |
tree | 9ac108704e0e7f837faae57842a888fa24f36a46 /sysconfig/network-scripts/ifup | |
parent | 9bb957b94b70065a49531672aa010aff517c24df (diff) | |
download | initscripts-368c219887e76664b8c3a374c9dd3086d0078759.tar initscripts-368c219887e76664b8c3a374c9dd3086d0078759.tar.gz initscripts-368c219887e76664b8c3a374c9dd3086d0078759.tar.bz2 initscripts-368c219887e76664b8c3a374c9dd3086d0078759.tar.xz initscripts-368c219887e76664b8c3a374c9dd3086d0078759.zip |
remove network device naming requirement from VLAN devices
Diffstat (limited to 'sysconfig/network-scripts/ifup')
-rwxr-xr-x | sysconfig/network-scripts/ifup | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysconfig/network-scripts/ifup b/sysconfig/network-scripts/ifup index 56b2d6e9..43c7df04 100755 --- a/sysconfig/network-scripts/ifup +++ b/sysconfig/network-scripts/ifup @@ -73,9 +73,9 @@ fi # Ethernet 802.1Q VLAN support if [ "${VLAN}" = "yes" ] && [ "$ISALIAS" = "no" ]; then VID="" - MATCH='^(eth|hsi|bond)[0-9]+\.[0-9]{1,4}$' + MATCH='^.+\.[0-9]{1,4}$' if [[ "${DEVICE}" =~ $MATCH ]]; then - VID=$(echo "${DEVICE}" | LC_ALL=C sed 's/^[a-z0-9]*\.0*\([0-9]\+\)/\1/') + VID=$(echo "${DEVICE}" | LC_ALL=C sed 's/^.*\.\([0-9]\+\)/\1/') PHYSDEV=${DEVICE%.*} fi MATCH='^vlan[0-9]{1,4}?' |