diff --git a/luci-app-mosdns/Makefile b/luci-app-mosdns/Makefile index b1c497f..f1d59cc 100644 --- a/luci-app-mosdns/Makefile +++ b/luci-app-mosdns/Makefile @@ -1,7 +1,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=luci-app-mosdns -PKG_VERSION:=1.5.3 +PKG_VERSION:=1.5.4 PKG_RELEASE:=1 LUCI_TITLE:=LuCI Support for mosdns @@ -15,6 +15,14 @@ define Package/$(PKG_NAME)/conffiles /etc/mosdns/rule endef +define Package/$(PKG_NAME)/postinst +#!/bin/sh +[ -n "${IPKG_INSTROOT}" ] || { + sysctl -p /etc/sysctl.d/20-mosdns-buffer-increase.conf + exit 0 +} +endef + include $(TOPDIR)/feeds/luci/luci.mk # call BuildPackage - OpenWrt buildroot signature diff --git a/luci-app-mosdns/root/etc/sysctl.d/20-mosdns-buffer-increase.conf b/luci-app-mosdns/root/etc/sysctl.d/20-mosdns-buffer-increase.conf new file mode 100644 index 0000000..18f2527 --- /dev/null +++ b/luci-app-mosdns/root/etc/sysctl.d/20-mosdns-buffer-increase.conf @@ -0,0 +1,5 @@ +# Do not edit, changes to this file will be lost on upgrades +# /etc/sysctl.conf can be used to customize sysctl settings + +net.core.rmem_max=4194304 +net.core.wmem_max=4194304