aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d/network
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>1999-02-04 01:03:34 +0000
committerBill Nottingham <notting@redhat.com>1999-02-04 01:03:34 +0000
commite8d2f95c03d1df94ca6ab9bab11f0f1d8e8c5893 (patch)
tree3b299a1b638cf16e4d9574318b683851395f6e4c /rc.d/init.d/network
parent2aa519f20375260f6e22d408e8bce7fabf2140b6 (diff)
downloadinitscripts-e8d2f95c03d1df94ca6ab9bab11f0f1d8e8c5893.tar
initscripts-e8d2f95c03d1df94ca6ab9bab11f0f1d8e8c5893.tar.gz
initscripts-e8d2f95c03d1df94ca6ab9bab11f0f1d8e8c5893.tar.bz2
initscripts-e8d2f95c03d1df94ca6ab9bab11f0f1d8e8c5893.tar.xz
initscripts-e8d2f95c03d1df94ca6ab9bab11f0f1d8e8c5893.zip
bugfixes...
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)