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(-) 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