From ff7a7b021275bce3b2b2e11336a970c8041066af Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Mon, 12 Aug 2002 20:02:22 +0000 Subject: use -n with iptables -L (#70807) --- sysconfig/network-scripts/ifup-post | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sysconfig/network-scripts/ifup-post') diff --git a/sysconfig/network-scripts/ifup-post b/sysconfig/network-scripts/ifup-post index a2616aae..e36b3a93 100755 --- a/sysconfig/network-scripts/ifup-post +++ b/sysconfig/network-scripts/ifup-post @@ -3,6 +3,9 @@ cd /etc/sysconfig/network-scripts . network-functions +[ -f ../network ] && . ../network +[ -f ../networking/network ] && . ../networking/network + CONFIG=$1 source_config @@ -80,7 +83,7 @@ if [ "$PEERDNS" != "no" -o -n "$RESOLV_MODS" -a "$RESOLV_MODS" != "no" ]; then fi if [ "$FIREWALL_MODS" != "no" -a -f /etc/sysconfig/ipchains ] && \ - iptables -L 2>/dev/null | grep -q RH-Lokkit-0-50-INPUT ; then + iptables -L -n 2>/dev/null | grep -q RH-Lokkit-0-50-INPUT ; then ns=`awk '/^nameserver / { print $2 }' /etc/resolv.conf` if [ -n "$ns" ]; then for nameserver in $ns ; do -- cgit