aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2001-02-12 18:02:37 +0000
committerBill Nottingham <notting@redhat.com>2001-02-12 18:02:37 +0000
commit599d2ed3505de669a2db1cdec22c7db12dc3044c (patch)
tree521e3b3ebfc331918e298e4ef4438f0c23de35c1 /sysconfig/network-scripts
parent339e73e4150ce48dc77745f8ee9fb0a784f2861a (diff)
downloadinitscripts-599d2ed3505de669a2db1cdec22c7db12dc3044c.tar
initscripts-599d2ed3505de669a2db1cdec22c7db12dc3044c.tar.gz
initscripts-599d2ed3505de669a2db1cdec22c7db12dc3044c.tar.bz2
initscripts-599d2ed3505de669a2db1cdec22c7db12dc3044c.tar.xz
initscripts-599d2ed3505de669a2db1cdec22c7db12dc3044c.zip
ifup-post could be called from places other than ifup, so recheck $FWACTIVE here
Diffstat (limited to 'sysconfig/network-scripts')
-rwxr-xr-xsysconfig/network-scripts/ifup-post6
1 files changed, 6 insertions, 0 deletions
diff --git a/sysconfig/network-scripts/ifup-post b/sysconfig/network-scripts/ifup-post
index 9ea7ffbe..14871708 100755
--- a/sysconfig/network-scripts/ifup-post
+++ b/sysconfig/network-scripts/ifup-post
@@ -80,6 +80,12 @@ if [ "$PEERDNS" != "no" -o -n "$RESOLV_MODS" -a "$RESOLV_MODS" != "no" ]; then
fi
fi
+FWACTIVE=
+if [ -f /etc/sysconfig/ipchains -a "`ipchains -L input -n 2>&1 | awk 'END { print NR }'`" -gt 1 ]; then
+ FWACTIVE=1
+ export FWACTIVE
+fi
+
if [ "$FIREWALL_MODS" != "no" -a -n "$FWACTIVE" ]; then
ns=`awk '/^nameserver / { print $2 }' /etc/resolv.conf`
if [ -n "$ns" ]; then