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/network6
1 files changed, 4 insertions, 2 deletions
diff --git a/rc.d/init.d/network b/rc.d/init.d/network
index 9b01c324..93f86480 100755
--- a/rc.d/init.d/network
+++ b/rc.d/init.d/network
@@ -57,7 +57,8 @@ ipv4_forward_set ()
fi
if [ $value != `cat /proc/sys/net/ipv4/ip_forward` ]; then
- action -n "$message" echo "$value" > /proc/sys/net/ipv4/ip_forward
+ action -n "$message" /bin/true
+ echo "$value" > /proc/sys/net/ipv4/ip_forward
fi
fi
fi
@@ -95,7 +96,8 @@ case "$1" in
;;
esac
./ifdown ifcfg-lo
- action -n "Disabling IPv4 packet forwarding" echo 0 > /proc/sys/net/ipv4/ip_forward
+ action -n "Disabling IPv4 packet forwarding" /bin/true
+ echo 0 > /proc/sys/net/ipv4/ip_forward
rm -f /var/lock/subsys/network
;;
status)