improve startup and runtime performance by 1) moving common startup procedures out of hotplug script when called from mwan3 start 2) reducing calls to iptables to check status of rules 3) consolidating iptables updates and updating with iptables-restore 4) do not wait for kill if nothing was killed 5) running interface hotplug scripts in parallel 6) eliminate operations in hotplug script that check status on every single interface unnecessarily 7) consolidate how mwan3track makes hotplug calls 8) do not restart mwan3track on connected events This is a significant refactor, but should not result in any breaking changes or require users to update their configurations. version bump to 2.9.0 Signed-off-by: Aaron Goodman <aaronjg@stanford.edu>
68 lines
1.4 KiB
Makefile
68 lines
1.4 KiB
Makefile
#
|
|
# Copyright (C) 2006-2014 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=mwan3
|
|
PKG_VERSION:=2.9.0
|
|
PKG_RELEASE:=1
|
|
PKG_MAINTAINER:=Florian Eckert <fe@dev.tdt.de>
|
|
PKG_LICENSE:=GPL-2.0
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/mwan3
|
|
SECTION:=net
|
|
CATEGORY:=Network
|
|
SUBMENU:=Routing and Redirection
|
|
DEPENDS:= \
|
|
+ip \
|
|
+ipset \
|
|
+iptables \
|
|
+iptables-mod-conntrack-extra \
|
|
+iptables-mod-ipopt \
|
|
+jshn
|
|
TITLE:=Multiwan hotplug script with connection tracking support
|
|
MAINTAINER:=Florian Eckert <fe@dev.tdt.de>
|
|
PKGARCH:=all
|
|
endef
|
|
|
|
define Package/mwan3/description
|
|
Hotplug script which makes configuration of multiple WAN interfaces simple
|
|
and manageable. With loadbalancing/failover support for up to 250 wan
|
|
interfaces, connection tracking and an easy to manage traffic ruleset.
|
|
endef
|
|
|
|
define Package/mwan3/conffiles
|
|
/etc/config/mwan3
|
|
/etc/mwan3.user
|
|
endef
|
|
|
|
define Build/Compile
|
|
endef
|
|
|
|
define Package/mwan3/postinst
|
|
#!/bin/sh
|
|
if [ -z "$${IPKG_INSTROOT}" ]; then
|
|
/etc/init.d/rpcd restart
|
|
fi
|
|
exit 0
|
|
endef
|
|
|
|
define Package/mwan3/postrm
|
|
#!/bin/sh
|
|
if [ -z "$${IPKG_INSTROOT}" ]; then
|
|
/etc/init.d/rpcd restart
|
|
fi
|
|
exit 0
|
|
endef
|
|
|
|
define Package/mwan3/install
|
|
$(CP) ./files/* $(1)
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,mwan3))
|