From 0b32aa5b7c6968b12113a82093430b933215b2a6 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Wed, 30 Mar 2005 16:48:29 +0000 Subject: handle alternate VLAN naming schemes (#115001) --- rc.d/init.d/network | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'rc.d') diff --git a/rc.d/init.d/network b/rc.d/init.d/network index 4a69dfd8..4a599e10 100755 --- a/rc.d/init.d/network +++ b/rc.d/init.d/network @@ -77,7 +77,8 @@ case "$1" in case "$VLAN" in yes) if [ -d /proc/net/vlan ] || modprobe 8021q >/dev/null 2>&1 ; then - action $"Setting 802.1Q VLAN parameters: " /sbin/vconfig set_name_type DEV_PLUS_VID_NO_PAD + test -z "$VLAN_NAME_TYPE" && VLAN_NAME_TYPE=DEV_PLUS_VID_NO_PAD + action $"Setting 802.1Q VLAN parameters: " /sbin/vconfig set_name_type "$VLAN_NAME_TYPE" else echo $"No 802.1Q VLAN support available in kernel." fi -- cgit v1.2.1