From 3f80afcea4cfdcea0c085f5842542ce66180e579 Mon Sep 17 00:00:00 2001 From: Robert Bays Date: Tue, 15 Jan 2008 20:58:24 -0800 Subject: fix for bug 2534 and prep for larson's vif link detect fixes --- templates/interfaces/ethernet/node.def | 2 ++ 1 file changed, 2 insertions(+) (limited to 'templates/interfaces/ethernet') diff --git a/templates/interfaces/ethernet/node.def b/templates/interfaces/ethernet/node.def index f3b4cac..cfaf798 100644 --- a/templates/interfaces/ethernet/node.def +++ b/templates/interfaces/ethernet/node.def @@ -7,6 +7,8 @@ syntax: exec " \ exit 1 ; \ fi ; " update: "sudo ip link set $(@) up" ; "Error enabling dev $(@)" +update: "\\${vyatta_sbindir}/vyatta-vtysh.pl -c \"configure terminal\" -c \"interface $(@)\" \ + -c \"link-detect\"; " delete: "sudo ip link set $(@) down" ; "Error disabling dev $(@)" #allowed: local -a array ; # array=( /sys/class/net/{eth,vmnet}[0-9]+[^.] ) ; -- cgit v1.2.3