aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d/network
diff options
context:
space:
mode:
Diffstat (limited to 'rc.d/init.d/network')
-rwxr-xr-xrc.d/init.d/network8
1 files changed, 1 insertions, 7 deletions
diff --git a/rc.d/init.d/network b/rc.d/init.d/network
index 777c66e8..40802432 100755
--- a/rc.d/init.d/network
+++ b/rc.d/init.d/network
@@ -258,13 +258,7 @@ case "$1" in
action $"Shutting down loopback interface: " ./ifdown ifcfg-lo
- if [ -d /proc/sys/net/ipv4 ]; then
- if [ -f /proc/sys/net/ipv4/ip_forward ]; then
- if [ $(cat /proc/sys/net/ipv4/ip_forward) != 0 ]; then
- action $"Disabling IPv4 packet forwarding: " sysctl -w net.ipv4.ip_forward=0
- fi
- fi
- fi
+ sysctl -w net.ipv4.ip_forward=0 > /dev/null 2>&1
# IPv6 hook (post IPv4 stop)
if [ -x /etc/sysconfig/network-scripts/init.ipv6-global ]; then