diff options
author | Bill Nottingham <notting@redhat.com> | 2009-03-17 10:16:30 -0400 |
---|---|---|
committer | Harald Hoyer <harald@redhat.com> | 2009-05-04 16:05:06 +0200 |
commit | efd768e3941b54c8e3332dfd96fefed53a4be20e (patch) | |
tree | 0aadeb470897491e9e60a32133e2894a7fe47fff /sysconfig/network-scripts | |
parent | 781b334da9721e37fa75a1d3ea415774867d32e2 (diff) | |
download | initscripts-efd768e3941b54c8e3332dfd96fefed53a4be20e.tar initscripts-efd768e3941b54c8e3332dfd96fefed53a4be20e.tar.gz initscripts-efd768e3941b54c8e3332dfd96fefed53a4be20e.tar.bz2 initscripts-efd768e3941b54c8e3332dfd96fefed53a4be20e.tar.xz initscripts-efd768e3941b54c8e3332dfd96fefed53a4be20e.zip |
Add vlan support for s390 HSI interfaces. (#490584)
Diffstat (limited to 'sysconfig/network-scripts')
-rwxr-xr-x | sysconfig/network-scripts/ifup | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifup b/sysconfig/network-scripts/ifup index be8b181a..7fa00a79 100755 --- a/sysconfig/network-scripts/ifup +++ b/sysconfig/network-scripts/ifup @@ -62,7 +62,8 @@ fi # Ethernet 802.1Q VLAN support if [ -x /sbin/vconfig -a "${VLAN}" = "yes" -a "$ISALIAS" = "no" ]; then VID="" - if [[ "${DEVICE}" =~ '^(eth|bond)[0-9]+\.[0-9]{1,4}$' ]]; then + 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*//') PHYSDEV=${DEVICE%.*} fi |