rewrite of the network scripts and configuration
[openwrt.git] / package / iptables / files / firewall.awk
index 5378330..902c7b1 100644 (file)
@@ -1,10 +1,7 @@
 # Copyright (C) 2006 OpenWrt.org
 
 BEGIN {
-       print ". /etc/config/network"
-       print "proto=\"$wan_proto\""
-       print "[ -z \"$proto\" -o \"$proto\" = \"none\" ] && exit"
-       print "ifname=\"$wan_ifname\""
+       print "ifname=\"$WAN\""
        print "[ -z \"$ifname\" ] && exit"
        print ""
        print "iptables -X input_$ifname 2>&- >&-"