summaryrefslogtreecommitdiff
path: root/scripts/vyatta-link-detect
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-03-25 14:55:45 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-03-25 14:55:45 -0700
commit89faa9bc8c070f8c13b509d92b0c43c30ce980da (patch)
treeac790a8778e8094c6592dd67a7fdbdb76b0b186a /scripts/vyatta-link-detect
parenteedd04171ff3c6017e52830e8e07ec437e1c6663 (diff)
downloadvyatta-cfg-quagga-89faa9bc8c070f8c13b509d92b0c43c30ce980da.tar.gz
vyatta-cfg-quagga-89faa9bc8c070f8c13b509d92b0c43c30ce980da.zip
Fix link_filter setting
Need to be super user here. Also ipv6 link filter is not in kernel yet.
Diffstat (limited to 'scripts/vyatta-link-detect')
-rwxr-xr-xscripts/vyatta-link-detect8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/vyatta-link-detect b/scripts/vyatta-link-detect
index 66f444d3..f0d0693b 100755
--- a/scripts/vyatta-link-detect
+++ b/scripts/vyatta-link-detect
@@ -13,11 +13,11 @@ if [ $# -ne 2 ]; then
fi
case $2 in
-on) sysctl -w "net.ipv4.conf.$1.link_filter=2"
- sysctl -w "net.ipv6.conf.$1.link_filter=2"
+on) sudo sysctl -w "net.ipv4.conf.$1.link_filter=2"
+# sudo sysctl -w "net.ipv6.conf.$1.link_filter=2"
cmd="link-detect" ;;
-off) sysctl -w "net.ipv4.conf.$1.link_filter=1"
- sysctl -w "net.ipv6.conf.$1.link_filter=1"
+off) sudo sysctl -w "net.ipv4.conf.$1.link_filter=1"
+# sudo sysctl -w "net.ipv6.conf.$1.link_filter=1"
cmd="no link-detect" ;;
*) usage;;
esac