From d9349ca1d70d49ead870decdfafaefc21abd2a42 Mon Sep 17 00:00:00 2001 From: An-Cheng Huang Date: Wed, 24 Oct 2007 10:05:08 -0700 Subject: add 'sudo' to 'interfaces' configuration commands. --- templates/interfaces/loopback/node.def | 2 +- templates/interfaces/loopback/node.tag/address/node.def | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'templates/interfaces/loopback') diff --git a/templates/interfaces/loopback/node.def b/templates/interfaces/loopback/node.def index 328a192..d6e3a81 100644 --- a/templates/interfaces/loopback/node.def +++ b/templates/interfaces/loopback/node.def @@ -6,4 +6,4 @@ syntax: exec " \ echo loopback interface $(@) doesn\\'t exist on this system ; \ exit 1 ; \ fi ; " -update: "ip link set $(@) up" +update: "sudo ip link set $(@) up" diff --git a/templates/interfaces/loopback/node.tag/address/node.def b/templates/interfaces/loopback/node.tag/address/node.def index 2e7e106..cdef75c 100644 --- a/templates/interfaces/loopback/node.tag/address/node.def +++ b/templates/interfaces/loopback/node.tag/address/node.def @@ -2,5 +2,5 @@ multi: type: ipv4net help: "Set IPv4 address and prefix for this interface" # TODO make sure 127.0.0.0/8 not in here. -create: "ip addr add $(@) dev $(../@)"; "error setting address $(@) on dev $(../@)" -delete: "ip addr del $(@) dev $(../@)"; "error deleteing address $(@) on dev $(../@)" +update: "sudo ip addr add $(@) dev $(../@)"; "error setting address $(@) on dev $(../@)" +delete: "sudo ip addr del $(@) dev $(../@)"; "error deleteing address $(@) on dev $(../@)" -- cgit v1.2.3