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.def6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/interfaces/ethernet/node.def b/templates/interfaces/ethernet/node.def
index 2af57e0a..b4e60340 100644
--- a/templates/interfaces/ethernet/node.def
+++ b/templates/interfaces/ethernet/node.def
@@ -35,14 +35,14 @@ create: if ! cli-shell-api exists interfaces ethernet $VAR(@) disable;
case "$VAR(@)" in
*lan*)
masterint=$(ip link show $VAR(@) | awk 'NR==1{print $2 }' | grep -ao "eth[0-9]")
- ip link set $masterint up
+ sudo ip link set $masterint up
;;
esac
- ip link set $VAR(@) up
+ sudo ip link set $VAR(@) up
fi
/opt/vyatta/sbin/vyatta-link-detect $VAR(@) on
delete: [ -d /sys/class/net/$VAR(@) ] || exit 0
- ip link set $VAR(@) down
+ sudo ip link set $VAR(@) down
end: rm -f /tmp/speed-duplex.$VAR(@)