summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-08-12 15:21:31 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-08-12 15:21:31 -0700
commitccb5fed3a8d3b1cbaf00ab7365e18abc3a8ee340 (patch)
tree37c9c1edb3b2502bcf9b8c1c849546e3e5f322e3
parent88c83f7a41733c6f838d38014f375b56d271e65f (diff)
downloadvyatta-cfg-ccb5fed3a8d3b1cbaf00ab7365e18abc3a8ee340.tar.gz
vyatta-cfg-ccb5fed3a8d3b1cbaf00ab7365e18abc3a8ee340.zip
Vtysh is not in sbindir
-rw-r--r--templates/interfaces/ethernet/node.def2
-rw-r--r--templates/interfaces/ethernet/node.tag/vif/node.def2
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/interfaces/ethernet/node.def b/templates/interfaces/ethernet/node.def
index c0547f7..ba15828 100644
--- a/templates/interfaces/ethernet/node.def
+++ b/templates/interfaces/ethernet/node.def
@@ -7,7 +7,7 @@ syntax:expression: exec " \
exit 1 ; \
fi ; "
update: sudo ip link set "$VAR(@)" up
- ${vyatta_sbindir}/vyatta-vtysh -c "configure terminal" \
+ vyatta-vtysh -c "configure terminal" \
-c "interface $VAR(@)" -c "link-detect"
delete: sudo ip link set "$VAR(@)" down
allowed: for dev in /sys/class/net/*;
diff --git a/templates/interfaces/ethernet/node.tag/vif/node.def b/templates/interfaces/ethernet/node.tag/vif/node.def
index 92e9022..d37b045 100644
--- a/templates/interfaces/ethernet/node.tag/vif/node.def
+++ b/templates/interfaces/ethernet/node.tag/vif/node.def
@@ -5,7 +5,7 @@ syntax:expression: $VAR(@) >= 0 && $VAR(@) <= 4094; "VLAN ID must be between 0 a
create: sudo modprobe 8021q
sudo vconfig add "$VAR(../@)" "$VAR(@)"
sudo ip link set "$VAR(../@).$VAR(@)" up
- ${vyatta_sbindir}/vyatta-vtysh -c "configure terminal" \
+ vyatta-vtysh -c "configure terminal" \
-c "interface $VAR(../@).$VAR(@)" -c "link-detect"
delete: sudo vconfig rem "$VAR(../@).$VAR(@)"
comp_help: possible completions: