From b3121cf6e2e025f42cb0686dcf47488e085881a0 Mon Sep 17 00:00:00 2001 From: An-Cheng Huang Date: Wed, 31 Oct 2007 14:18:34 -0700 Subject: enable ethernet interface by default --- templates/interfaces/ethernet/node.def | 2 ++ templates/interfaces/ethernet/node.tag/disable/node.def | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'templates/interfaces') 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 $(../@)" -- cgit v1.2.3