SVN: rc-scripts/trunk/sysconfig/network-scripts/ifup-vlan

gotar gotar at pld-linux.org
Fri Feb 27 17:36:52 CET 2009


Author: gotar
Date: Fri Feb 27 17:36:52 2009
New Revision: 10150

Modified:
   rc-scripts/trunk/sysconfig/network-scripts/ifup-vlan
Log:
- fixed exit status when no appropriate tools found


Modified: rc-scripts/trunk/sysconfig/network-scripts/ifup-vlan
==============================================================================
--- rc-scripts/trunk/sysconfig/network-scripts/ifup-vlan	(original)
+++ rc-scripts/trunk/sysconfig/network-scripts/ifup-vlan	Fri Feb 27 17:36:52 2009
@@ -69,13 +69,14 @@
 	# default no
 	is_yes "$VLAN_GVRP" && VLAN_GVRP=on || VLAN_GVRP=off
 	/sbin/ip link set ${DEVICE} type vlan reorder_hdr ${VLAN_REORDER_HDR} gvrp ${VLAN_GVRP}
-elif [ -x /sbin/vconfig ] ; then
+elif [ -x /sbin/vconfig ]; then
 	/sbin/vconfig set_name_type DEV_PLUS_VID_NO_PAD
 	/sbin/ip link set ${VLAN_DEV} up
 	/sbin/vconfig add ${VLAN_DEV} ${VLAN_ID}
 	/sbin/vconfig set_flag ${DEVICE} 1 ${VLAN_REORDER_HDR:-1}
 else
 	nls "/sbin/vconfig or iproute2 with vlan support is missing. Can't continue."
+	exit 1
 fi
 RESULT=$?
 


More information about the pld-cvs-commit mailing list