aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2002-04-12 20:27:50 +0000
committerBill Nottingham <notting@redhat.com>2002-04-12 20:27:50 +0000
commit00faec2727d1410de57e76837a264711bc093325 (patch)
treed9bc9e2f033248e18fab0ab2bcac33a3cc493632 /sysconfig/network-scripts
parente0dbca840a6adbdc610752aa763eaa57096e662e (diff)
downloadinitscripts-00faec2727d1410de57e76837a264711bc093325.tar
initscripts-00faec2727d1410de57e76837a264711bc093325.tar.gz
initscripts-00faec2727d1410de57e76837a264711bc093325.tar.bz2
initscripts-00faec2727d1410de57e76837a264711bc093325.tar.xz
initscripts-00faec2727d1410de57e76837a264711bc093325.zip
use -e argument to sysctl
Diffstat (limited to 'sysconfig/network-scripts')
-rw-r--r--sysconfig/network-scripts/network-functions-ipv622
1 files changed, 11 insertions, 11 deletions
diff --git a/sysconfig/network-scripts/network-functions-ipv6 b/sysconfig/network-scripts/network-functions-ipv6
index 5c71b6ea..95dcb08c 100644
--- a/sysconfig/network-scripts/network-functions-ipv6
+++ b/sysconfig/network-scripts/network-functions-ipv6
@@ -307,7 +307,7 @@ ipv6_control_forwarding() {
# Global control? (if no device is given)
if [ -z "$fw_device" ]; then
- ipv6_exec_sysctl -w net.ipv6.conf.all.forwarding=$status >/dev/null
+ ipv6_exec_sysctl -w -e net.ipv6.conf.all.forwarding=$status >/dev/null
fi
# Per device control (not implemented in kernel)
@@ -487,9 +487,9 @@ ipv6_enable_autotunnel() {
fi
# Set sysctls proper (regardless "default")
- ipv6_exec_sysctl -w net.ipv6.conf.sit0.forwarding=1 >/dev/null
- ipv6_exec_sysctl -w net.ipv6.conf.sit0.accept_ra=0 >/dev/null
- ipv6_exec_sysctl -w net.ipv6.conf.sit0.accept_redirects=0 >/dev/null
+ ipv6_exec_sysctl -w -e net.ipv6.conf.sit0.forwarding=1 >/dev/null
+ ipv6_exec_sysctl -w -e net.ipv6.conf.sit0.accept_ra=0 >/dev/null
+ ipv6_exec_sysctl -w -e net.ipv6.conf.sit0.accept_redirects=0 >/dev/null
fi
return 0
@@ -514,9 +514,9 @@ ipv6_disable_autotunnel() {
true
else
# take down basic tunnel device
- ipv6_exec_sysctl -w net.ipv6.conf.sit0.forwarding=0 >/dev/null
- ipv6_exec_sysctl -w net.ipv6.conf.sit0.accept_ra=0 >/dev/null
- ipv6_exec_sysctl -w net.ipv6.conf.sit0.accept_redirects=0 >/dev/null
+ ipv6_exec_sysctl -w -e net.ipv6.conf.sit0.forwarding=0 >/dev/null
+ ipv6_exec_sysctl -w -e net.ipv6.conf.sit0.accept_ra=0 >/dev/null
+ ipv6_exec_sysctl -w -e net.ipv6.conf.sit0.accept_redirects=0 >/dev/null
ipv6_exec_ifconfig sit0 down
@@ -1235,9 +1235,9 @@ ipv6_add_tunnel_device() {
fi
# Set sysctls proper (regardless "default")
- ipv6_exec_sysctl -w net.ipv6.conf.$device.forwarding=1 >/dev/null
- ipv6_exec_sysctl -w net.ipv6.conf.$device.accept_ra=0 >/dev/null
- ipv6_exec_sysctl -w net.ipv6.conf.$device.accept_redirects=0 >/dev/null
+ ipv6_exec_sysctl -w -e net.ipv6.conf.$device.forwarding=1 >/dev/null
+ ipv6_exec_sysctl -w -e net.ipv6.conf.$device.accept_ra=0 >/dev/null
+ ipv6_exec_sysctl -w -e net.ipv6.conf.$device.accept_redirects=0 >/dev/null
if [ ! -z "$addressipv6local" ]; then
# Setup P-t-P address
@@ -1437,7 +1437,7 @@ ipv6_set_mtu() {
fi
# Set value
- ipv6_exec_sysctl -w net.ipv6.conf.$device.mtu=$ipv6_mtu >/dev/null
+ ipv6_exec_sysctl -w -e net.ipv6.conf.$device.mtu=$ipv6_mtu >/dev/null
return 0
}