diff options
-rwxr-xr-x | scripts/vyatta-link-detect | 8 |
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 |