From 1a307faefd1faf6bd0977a5996214c7e362e5f75 Mon Sep 17 00:00:00 2001 From: Frank Date: Wed, 16 Mar 2011 10:15:55 -0700 Subject: [PATCH] Bug 8208 - bare metal provisioning fix wrong result comparsion in prepare_dnsmasq.sh --- scripts/network/exdhcp/prepare_dnsmasq.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/network/exdhcp/prepare_dnsmasq.sh b/scripts/network/exdhcp/prepare_dnsmasq.sh index 3a94e94f96b..b529a7594df 100644 --- a/scripts/network/exdhcp/prepare_dnsmasq.sh +++ b/scripts/network/exdhcp/prepare_dnsmasq.sh @@ -165,7 +165,7 @@ config_dnsmasq dhcp-authoritative # Open DHCP ports in iptable chkconfig --list iptables | grep "on" -if [ $? -ne 0 ]; then +if [ $? -eq 0 ]; then iptables-save | grep 'A INPUT -p udp -m udp --dport 67 -j ACCEPT' >/dev/null if [ $? -ne 0 ]; then iptables -I INPUT 1 -p udp --dport 67 -j ACCEPT