From 5db776a29c90d05f864645e7e171840660f4b268 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Thu, 5 Feb 2009 16:42:48 -0800 Subject: Move sudo from vyatta-protocol to nodes Much cleaner to do sudo once rather than repeatedly --- templates/protocols/rip/node.def | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'templates/protocols/rip') diff --git a/templates/protocols/rip/node.def b/templates/protocols/rip/node.def index a77bdb30..20cb58ad 100644 --- a/templates/protocols/rip/node.def +++ b/templates/protocols/rip/node.def @@ -1,7 +1,7 @@ help: Configure Routing Information Protocol (RIP) parameters -create: /opt/vyatta/sbin/vyatta-protocol start ripd +create: sudo ${vyatta_sbindir}/vyatta-protocol start ripd vyatta-vtysh -c "configure terminal" -c "router rip" delete: vyatta-vtysh -c "configure terminal" -c "no router rip" - /opt/vyatta/sbin/vyatta-protocol stop ripd + sudo ${vyatta_sbindir}/vyatta-protocol stop ripd -- cgit v1.2.3