aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifup-post
diff options
context:
space:
mode:
authorFlorian La Roche <laroche@redhat.com>2002-07-05 07:52:29 +0000
committerFlorian La Roche <laroche@redhat.com>2002-07-05 07:52:29 +0000
commit66447c998efe1fd53f5b18b470ff7bfa02ad5c14 (patch)
treeb6ad587d8da045e02ef857f7771f9bb66f290bfe /sysconfig/network-scripts/ifup-post
parentd17102caf2197a524692e6d1add3f3b3704d74da (diff)
downloadinitscripts-66447c998efe1fd53f5b18b470ff7bfa02ad5c14.tar
initscripts-66447c998efe1fd53f5b18b470ff7bfa02ad5c14.tar.gz
initscripts-66447c998efe1fd53f5b18b470ff7bfa02ad5c14.tar.bz2
initscripts-66447c998efe1fd53f5b18b470ff7bfa02ad5c14.tar.xz
initscripts-66447c998efe1fd53f5b18b470ff7bfa02ad5c14.zip
- speed up FIREWALL_MODS=no case
Diffstat (limited to 'sysconfig/network-scripts/ifup-post')
-rwxr-xr-xsysconfig/network-scripts/ifup-post9
1 files changed, 2 insertions, 7 deletions
diff --git a/sysconfig/network-scripts/ifup-post b/sysconfig/network-scripts/ifup-post
index 64d5d3f0..bd716553 100755
--- a/sysconfig/network-scripts/ifup-post
+++ b/sysconfig/network-scripts/ifup-post
@@ -79,13 +79,8 @@ 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
+if [ "$FIREWALL_MODS" != "no" -a -f /etc/sysconfig/ipchains -a \
+ "`ipchains -L input -n 2>&1 | awk 'END { print NR }'`" -gt 1 ]; then
ns=`awk '/^nameserver / { print $2 }' /etc/resolv.conf`
if [ -n "$ns" ]; then
for nameserver in $ns ; do