summaryrefslogtreecommitdiff
path: root/templates/interfaces/ethernet/node.def
diff options
context:
space:
mode:
Diffstat (limited to 'templates/interfaces/ethernet/node.def')
-rw-r--r--templates/interfaces/ethernet/node.def2
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/interfaces/ethernet/node.def b/templates/interfaces/ethernet/node.def
index 8806643..66a5344 100644
--- a/templates/interfaces/ethernet/node.def
+++ b/templates/interfaces/ethernet/node.def
@@ -6,6 +6,8 @@ syntax: exec " \
echo ethernet interface $(@) doesn\\'t exist on this system ; \
exit 1 ; \
fi ; "
+update: "sudo ip link set $(@) up" ; "Error enabling dev $(@)"
+delete: "sudo ip link set $(@) down" ; "Error disabling dev $(@)"
#allowed: local -a array ;
# array=( /sys/class/net/{eth,vmnet}* ) ;
# echo -n ${array[@]##*/}