diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2007-10-31 14:18:34 -0700 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2007-10-31 14:18:34 -0700 |
commit | b3121cf6e2e025f42cb0686dcf47488e085881a0 (patch) | |
tree | 702a89353349ce269cf4bc645420031050ae04aa /templates/interfaces/ethernet/node.def | |
parent | 12153f056b2eff62f6496b30f42d56c5394e2c4a (diff) | |
download | vyatta-cfg-b3121cf6e2e025f42cb0686dcf47488e085881a0.tar.gz vyatta-cfg-b3121cf6e2e025f42cb0686dcf47488e085881a0.zip |
enable ethernet interface by default
Diffstat (limited to 'templates/interfaces/ethernet/node.def')
-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 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[@]##*/} |