diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-08-11 18:43:10 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-08-11 18:43:10 -0700 |
commit | 6a824168c957ec8739707bde71aaf404d250250d (patch) | |
tree | abed96aa2526f3cdd7eae65737ff77fde06e7e0b /templates/interfaces/ethernet/node.def | |
parent | b8f32d2b0f7d018aa71b05c98c873b6314f55baa (diff) | |
download | vyatta-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.def | 7 |
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 ]] |