From d1627b367e30988d26b7e393600149750534aaf6 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Fri, 21 May 2010 17:20:25 -0700 Subject: No longer need sudo for arp Have capability do that. --- templates/protocols/static/arp/node.def | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'templates/protocols/static/arp') diff --git a/templates/protocols/static/arp/node.def b/templates/protocols/static/arp/node.def index 0174b24c..8bf88225 100644 --- a/templates/protocols/static/arp/node.def +++ b/templates/protocols/static/arp/node.def @@ -36,8 +36,8 @@ end: ipaddr=$VAR(@) hwaddr=$VAR(hwaddr/@) - sudo arp -d $ipaddr > /dev/null + arp -d $ipaddr > /dev/null if [ -n "$hwaddr" ]; then - sudo arp -s $ipaddr $hwaddr + arp -s $ipaddr $hwaddr fi exit 0 -- cgit v1.2.3 From a04cd0d0ea838e72aa73389eef18ed9aa3246cb8 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Fri, 9 Jul 2010 18:04:42 -0700 Subject: Need full path to arp command If not using sudo, then need full path to arp. --- templates/protocols/static/arp/node.def | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'templates/protocols/static/arp') diff --git a/templates/protocols/static/arp/node.def b/templates/protocols/static/arp/node.def index 8bf88225..a7905c57 100644 --- a/templates/protocols/static/arp/node.def +++ b/templates/protocols/static/arp/node.def @@ -35,9 +35,8 @@ comp_help: Possible completions: end: ipaddr=$VAR(@) hwaddr=$VAR(hwaddr/@) - - arp -d $ipaddr > /dev/null + /usr/sbin/arp -d $ipaddr > /dev/null if [ -n "$hwaddr" ]; then - arp -s $ipaddr $hwaddr + /usr/sbin/arp -s $ipaddr $hwaddr fi exit 0 -- cgit v1.2.3