rewrite of the network scripts and configuration
[openwrt-10.03/.git] / package / iptables / files / firewall.awk
index 53783300453b5aa48028a8198738294ee4683a41..902c7b188842cf7826893f6db539fab9d36f1870 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>&- >&-"