diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/interfaces/ethernet/node.def | 2 |
1 files changed, 2 insertions, 0 deletions
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]+[^.] ) ; |