don't clear the mangle table in the default firewall script
[openwrt-10.03/.git] / package / base-files / default / etc / init.d / S45firewall
index c9986011ad89d868fd82e286de3999c81e67f9e6..8c67d82b18210ad81fe37191c8287d414cf7305d 100755 (executable)
@@ -5,13 +5,13 @@ ${FAILSAFE:+exit}
 
 . /etc/functions.sh
 . /etc/network.overrides
-[ -e /etc/config/network ] && . /etc/config/network
+[ "$FAILSAFE" != "true" -a -e /etc/config/network ] && . /etc/config/network
 
 WAN=$(nvram get wan_ifname)
 LAN=$(nvram get lan_ifname)
 
 ## CLEAR TABLES
-for T in filter nat mangle; do
+for T in filter nat; do
   iptables -t $T -F
   iptables -t $T -X
 done