From 06d5b450647af97048fb085a3f363b0e7bf904a5 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 9 Apr 2009 10:29:27 -0400 Subject: Allow changing of VLAN type even if the module is already loaded. (#495053, ) --- sysconfig/network-scripts/ifup | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'sysconfig') diff --git a/sysconfig/network-scripts/ifup b/sysconfig/network-scripts/ifup index 7164a698..8b721138 100755 --- a/sysconfig/network-scripts/ifup +++ b/sysconfig/network-scripts/ifup @@ -84,17 +84,17 @@ if [ -x /sbin/vconfig -a "${VLAN}" = "yes" -a "$ISALIAS" = "no" ]; then fi if [ -n "$VID" ]; then if [ ! -d /proc/net/vlan ]; then - if modprobe 8021q >/dev/null 2>&1 ; then - test -z "$VLAN_NAME_TYPE" && VLAN_NAME_TYPE=DEV_PLUS_VID_NO_PAD - /sbin/vconfig set_name_type "$VLAN_NAME_TYPE" >/dev/null 2>&1 || { - echo $"Could not set 802.1Q VLAN parameters." - } - else + if ! modprobe 8021q >/dev/null 2>&1 ; then echo $"No 802.1Q VLAN support available in kernel for device ${DEVICE}" exit 1 fi fi + test -z "$VLAN_NAME_TYPE" && VLAN_NAME_TYPE=DEV_PLUS_VID_NO_PAD + /sbin/vconfig set_name_type "$VLAN_NAME_TYPE" >/dev/null 2>&1 || { + echo $"Could not set 802.1Q VLAN parameters." + } + is_available ${PHYSDEV} || { if [ "$?" = "1" ] ; then echo $"$alias device ${DEVICE} does not seem to be present, delaying initialization." -- cgit v1.2.1