From 89ad1b807e36c310a252ef5d15eaf3482e52e998 Mon Sep 17 00:00:00 2001 From: teastep Date: Sun, 30 Dec 2007 18:31:41 +0000 Subject: [PATCH] Another hack to work around BusyBox ash on OpenWRT git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@7976 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall-perl/prog.header | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shorewall-perl/prog.header b/Shorewall-perl/prog.header index f324c1139..12e8f5abe 100644 --- a/Shorewall-perl/prog.header +++ b/Shorewall-perl/prog.header @@ -390,7 +390,7 @@ in_network() # $1 = IP address, $2 = CIDR network { local netmask=$(ip_netmask $2) - test $(( $(decodeaddr $1) & $netmask)) -eq $(( $(decodeaddr ${2%/*}) & $netmask )) + test $(( $(decodeaddr $1) & $netmask)) = $(( $(decodeaddr ${2%/*}) & $netmask )) } #