summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2007-10-31 14:18:34 -0700
committerAn-Cheng Huang <ancheng@vyatta.com>2007-10-31 14:18:34 -0700
commitb3121cf6e2e025f42cb0686dcf47488e085881a0 (patch)
tree702a89353349ce269cf4bc645420031050ae04aa
parent12153f056b2eff62f6496b30f42d56c5394e2c4a (diff)
downloadvyatta-cfg-b3121cf6e2e025f42cb0686dcf47488e085881a0.tar.gz
vyatta-cfg-b3121cf6e2e025f42cb0686dcf47488e085881a0.zip
enable ethernet interface by default
-rw-r--r--templates/interfaces/ethernet/node.def2
-rw-r--r--templates/interfaces/ethernet/node.tag/disable/node.def6
2 files changed, 5 insertions, 3 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[@]##*/}
diff --git a/templates/interfaces/ethernet/node.tag/disable/node.def b/templates/interfaces/ethernet/node.tag/disable/node.def
index 63ff5dd..5619908 100644
--- a/templates/interfaces/ethernet/node.tag/disable/node.def
+++ b/templates/interfaces/ethernet/node.tag/disable/node.def
@@ -1,3 +1,3 @@
-help: "enable interface"
-update: "sudo ip link set $(../@) up"; "error enabling dev $(../@)"
-delete: "sudo ip link set $(../@) down"; "error disabling dev $(../@)"
+help: "Disable interface"
+update: "sudo ip link set $(../@) down"; "Error disabling dev $(../@)"
+delete: "sudo ip link set $(../@) up"; "Error enabling dev $(../@)"