diff options
author | Bill Nottingham <notting@redhat.com> | 1999-07-07 15:28:55 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 1999-07-07 15:28:55 +0000 |
commit | 77b0bb06a826bff3e745bc10d2aff30bef514fe8 (patch) | |
tree | b53bf6cb38c6fff2d6528e62710dba0386c20b71 /rc.d | |
parent | a85467e47ddb766356552452059f883892ef92a4 (diff) | |
download | initscripts-77b0bb06a826bff3e745bc10d2aff30bef514fe8.tar initscripts-77b0bb06a826bff3e745bc10d2aff30bef514fe8.tar.gz initscripts-77b0bb06a826bff3e745bc10d2aff30bef514fe8.tar.bz2 initscripts-77b0bb06a826bff3e745bc10d2aff30bef514fe8.tar.xz initscripts-77b0bb06a826bff3e745bc10d2aff30bef514fe8.zip |
fixes from nkbj@image.dk
Diffstat (limited to 'rc.d')
-rwxr-xr-x | rc.d/init.d/network | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/rc.d/init.d/network b/rc.d/init.d/network index cb3a9768..7ef76e96 100755 --- a/rc.d/init.d/network +++ b/rc.d/init.d/network @@ -107,8 +107,12 @@ case "$1" in ;; esac ./ifdown ifcfg-lo - action "Disabling IPv4 packet forwarding" /bin/true - echo 0 > /proc/sys/net/ipv4/ip_forward + if [ -d /proc/sys/net/ipv4 -a -f /proc/sys/net/ipv4/ip_forward ]; then + if [ `cat /proc/sys/net/ipv4/ip_forward` != 0 ]; then + action "Disabling IPv4 packet forwarding" /bin/true + echo 0 > /proc/sys/net/ipv4/ip_forward + fi + fi rm -f /var/lock/subsys/network ;; status) |