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/ripng/node.def | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'templates/protocols/ripng/node.def') diff --git a/templates/protocols/ripng/node.def b/templates/protocols/ripng/node.def index 18735607..73f86c92 100644 --- a/templates/protocols/ripng/node.def +++ b/templates/protocols/ripng/node.def @@ -1,5 +1,5 @@ help: Configure Routing Information Protocol (RIPng) parameters -create: /opt/vyatta/sbin/vyatta-protocol start ripngd +create: sudo ${vyatta_sbindir}/vyatta-protocol start ripngd vyatta-vtysh -c "configure terminal" -c "router ripng" delete: vyatta-vtysh -c "configure terminal" -c "no router ripng" - /opt/vyatta/sbin/vyatta-protocol stop ripngd + sudo ${vyatta_sbindir}/vyatta-protocol stop ripngd -- cgit v1.2.3