[packages] multiwan: Updated failover removal

git-svn-id: svn://svn.openwrt.org/openwrt/packages@21176 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
craigc 2010-04-26 18:54:10 +00:00
parent 8080b37bb7
commit 35645e1be4
2 changed files with 3 additions and 7 deletions

View File

@ -8,8 +8,8 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=multiwan
PKG_VERSION:=1.0l
PKG_RELEASE:=2
PKG_VERSION:=1.0m
PKG_RELEASE:=1
include $(INCLUDE_DIR)/package.mk

View File

@ -40,11 +40,7 @@ fi
del() {
if [ "$existing_failover" == "3" ]; then
if [ "$failover_to" != "balancer" -a "failover_to" != "disable" -a "$failover_to_wanid" != "$wanid" ]; then
iptables -D FW${wanid}MARK -t mangle -j FW${failover_to_wanid}MARK
elif [ "$failover_to" == "balancer" ]; then
iptables -D FW${wanid}MARK -t mangle -j LoadBalancer
fi
iptables -D FW${wanid}MARK 2 -t mangle
fi
mwnote "$1 has recovered and is back online!"
}