]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
- fixed exit status when no appropriate tools found
authorTomasz Pala <gotar@pld-linux.org>
Fri, 27 Feb 2009 16:36:52 +0000 (16:36 +0000)
committerTomasz Pala <gotar@pld-linux.org>
Fri, 27 Feb 2009 16:36:52 +0000 (16:36 +0000)
svn-id: @10150

sysconfig/network-scripts/ifup-vlan

index c1ab254fee6b2500253a40cf215eb098ecc38428..32c6e0b98f5115c925388746791102447bb95669 100755 (executable)
@@ -69,13 +69,14 @@ if (LC_ALL=C ip link add type vlan help 2>&1 | grep -q "VLANID :="); then
        # 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=$?
 
This page took 0.212203 seconds and 4 git commands to generate.