summaryrefslogtreecommitdiff
path: root/templates/interfaces/ethernet/node.def
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-08-11 18:43:10 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-08-11 18:43:10 -0700
commit6a824168c957ec8739707bde71aaf404d250250d (patch)
treeabed96aa2526f3cdd7eae65737ff77fde06e7e0b /templates/interfaces/ethernet/node.def
parentb8f32d2b0f7d018aa71b05c98c873b6314f55baa (diff)
downloadvyatta-cfg-6a824168c957ec8739707bde71aaf404d250250d.tar.gz
vyatta-cfg-6a824168c957ec8739707bde71aaf404d250250d.zip
Replace vyatta-vtysh with vtysh
Diffstat (limited to 'templates/interfaces/ethernet/node.def')
-rw-r--r--templates/interfaces/ethernet/node.def7
1 files changed, 3 insertions, 4 deletions
diff --git a/templates/interfaces/ethernet/node.def b/templates/interfaces/ethernet/node.def
index 1c52675..5e3df91 100644
--- a/templates/interfaces/ethernet/node.def
+++ b/templates/interfaces/ethernet/node.def
@@ -6,10 +6,9 @@ syntax:expression: exec " \
echo Invalid ethernet interface [$VAR(@)]; \
exit 1 ; \
fi ; "
-update:expression: "sudo ip link set $VAR(@) up" ; "Error enabling dev $VAR(@)"
-update:expression: "vyatta-vtysh -c \"configure terminal\" -c \"interface $VAR(@)\" \
- -c \"link-detect\"; "
-delete:expression: "sudo ip link set $VAR(@) down" ; "Error disabling dev $VAR(@)"
+update: sudo ip link set "$VAR(@)" up
+ vtysh -c "configure terminal" -c "interface $VAR(@)" -c "link-detect"
+delete: sudo ip link set "$VAR(@)" down
allowed: for dev in /sys/class/net/*;
do if [[ -d $dev && -L $dev/device ]]
then if [[ $(cat $dev/type) -eq 1 ]]