From 7775cbb1736fe6134be36674d49d2f3e6626e352 Mon Sep 17 00:00:00 2001 From: Mohit Mehta Date: Sat, 28 Feb 2009 11:27:59 -0800 Subject: let admin user set arp paramters --- scripts/vyatta-update-arp-params | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'scripts') 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 ;; *) -- cgit v1.2.3