diff options
author | David S. Madole <david@madole.net> | 2009-11-09 07:45:23 -0500 |
---|---|---|
committer | Stig Thormodsrud <stig@vyatta.com> | 2009-11-07 11:08:36 -0800 |
commit | 07b1f39497ce34c11845857ba0a7a727652d0979 (patch) | |
tree | fe53d58e3a89ba4d8df887f1b232962874ba49d5 /templates/protocols | |
parent | 1188ea56be0fbc0375fff40f216cb54e15191ec9 (diff) | |
download | vyatta-cfg-quagga-07b1f39497ce34c11845857ba0a7a727652d0979.tar.gz vyatta-cfg-quagga-07b1f39497ce34c11845857ba0a7a727652d0979.zip |
arp command for statics needs to be run under sudo
Diffstat (limited to 'templates/protocols')
-rw-r--r-- | templates/protocols/static/arp/node.def | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/protocols/static/arp/node.def b/templates/protocols/static/arp/node.def index cf028611..0174b24c 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/@) - arp -d $ipaddr > /dev/null + sudo arp -d $ipaddr > /dev/null if [ -n "$hwaddr" ]; then - arp -s $ipaddr $hwaddr + sudo arp -s $ipaddr $hwaddr fi - exit 0
\ No newline at end of file + exit 0 |