summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMohit Mehta <mohit.mehta@vyatta.com>2009-02-28 11:27:59 -0800
committerMohit Mehta <mohit.mehta@vyatta.com>2009-02-28 11:27:59 -0800
commit7775cbb1736fe6134be36674d49d2f3e6626e352 (patch)
tree918a9b74f15f76c553110a3c9b4a0ecf8b9ccb6f
parent7c43a03d520fcaf3d8ef3e20aa33a792d1953e09 (diff)
downloadvyatta-cfg-quagga-7775cbb1736fe6134be36674d49d2f3e6626e352.tar.gz
vyatta-cfg-quagga-7775cbb1736fe6134be36674d49d2f3e6626e352.zip
let admin user set arp paramters
-rw-r--r--scripts/vyatta-update-arp-params12
1 files changed, 6 insertions, 6 deletions
diff --git a/scripts/vyatta-update-arp-params b/scripts/vyatta-update-arp-params
index d444064c..094d0751 100644
--- a/scripts/vyatta-update-arp-params
+++ b/scripts/vyatta-update-arp-params
@@ -75,9 +75,9 @@ update_arp_param ()
table-size)
let softmax=$arp_value\/2;
let min=$arp_value\/8;
- sysctl -q net.$ip_type.neigh.default.gc_thresh3=$arp_value
- sysctl -q net.$ip_type.neigh.default.gc_thresh2=$softmax
- sysctl -q net.$ip_type.neigh.default.gc_thresh1=$min
+ sudo sysctl -q net.$ip_type.neigh.default.gc_thresh3=$arp_value
+ sudo sysctl -q net.$ip_type.neigh.default.gc_thresh2=$softmax
+ sudo sysctl -q net.$ip_type.neigh.default.gc_thresh1=$min
;;
*)
@@ -94,9 +94,9 @@ delete_arp_param ()
case "$arp_type" in
table-size)
- sysctl -q net.$ip_type.neigh.default.gc_thresh3=1024
- sysctl -q net.$ip_type.neigh.default.gc_thresh2=512
- sysctl -q net.$ip_type.neigh.default.gc_thresh1=128
+ sudo sysctl -q net.$ip_type.neigh.default.gc_thresh3=1024
+ sudo sysctl -q net.$ip_type.neigh.default.gc_thresh2=512
+ sudo sysctl -q net.$ip_type.neigh.default.gc_thresh1=128
;;
*)