diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-12-03 10:25:06 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-12-03 10:25:06 -0800 |
commit | 50c357cac4a0ce61bdb47c61a0891a714243a5be (patch) | |
tree | 0f68d2f913ed7cf6e514fe94350da66a141c9b1a /templates/interfaces/ethernet/node.def | |
parent | 76cc15d086d6368b9949ef58b6dd379d2af7de39 (diff) | |
download | vyatta-cfg-50c357cac4a0ce61bdb47c61a0891a714243a5be.tar.gz vyatta-cfg-50c357cac4a0ce61bdb47c61a0891a714243a5be.zip |
Use vyatta-link-detect
New script to wrap direct calls to vtysh
Diffstat (limited to 'templates/interfaces/ethernet/node.def')
-rw-r--r-- | templates/interfaces/ethernet/node.def | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/templates/interfaces/ethernet/node.def b/templates/interfaces/ethernet/node.def index 3023a70..402b13b 100644 --- a/templates/interfaces/ethernet/node.def +++ b/templates/interfaces/ethernet/node.def @@ -10,8 +10,7 @@ syntax:expression: exec " \ fi" update: sudo ip link set "$VAR(@)" up - vyatta-vtysh -c "configure terminal" \ - -c "interface $VAR(@)" -c "link-detect" + vyatta-link-detect $VAR(@) on delete: sudo ip link set "$VAR(@)" down allowed: for dev in /sys/class/net/eth*; do if [[ -d $dev && -L $dev/device ]] |