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 4e8317d662c3f1117404c640e77cb9f8bd9b1b8e..04b37bdc4cf4e08027183e84c4e3637f148c2dd3 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
        }
 }