From efd768e3941b54c8e3332dfd96fefed53a4be20e Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Tue, 17 Mar 2009 10:16:30 -0400 Subject: Add vlan support for s390 HSI interfaces. (#490584) --- sysconfig/network-scripts/ifup | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sysconfig/network-scripts') 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 -- cgit v1.2.1