export WAN variable so that firewall works (#907)
authorFlorian Fainelli <florian@openwrt.org>
Fri, 3 Nov 2006 10:10:08 +0000 (10:10 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Fri, 3 Nov 2006 10:10:08 +0000 (10:10 +0000)
SVN-Revision: 5412

package/iptables/files/firewall.init

index 4e8317d..04b37bd 100755 (executable)
@@ -101,6 +101,7 @@ start() {
        ## USER RULES
        [ -f /etc/firewall.user ] && . /etc/firewall.user
        [ -n "$WAN" -a -e /etc/config/firewall ] && {
+               export WAN
                awk -f /usr/lib/common.awk -f /usr/lib/firewall.awk /etc/config/firewall | ash
        }
 }