luci-app-mosdns: fix an error reported when using imageBuilder

This commit is contained in:
Bard 2023-07-06 15:52:40 +08:00 committed by GitHub
commit 36e932094e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -17,6 +17,7 @@ endef
define Package/$(PKG_NAME)/postinst define Package/$(PKG_NAME)/postinst
#!/bin/sh #!/bin/sh
[ ! -f /etc/openwrt_release ] && exit 0
[ -n "${IPKG_INSTROOT}" ] || { [ -n "${IPKG_INSTROOT}" ] || {
sysctl -p /etc/sysctl.d/20-mosdns-buffer-increase.conf sysctl -p /etc/sysctl.d/20-mosdns-buffer-increase.conf
exit 0 exit 0

View File

@ -20,6 +20,8 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>. # along with this program. If not, see <https://www.gnu.org/licenses/>.
# #
[ ! -f /etc/openwrt_release ] && exit 0
START=99 START=99
USE_PROCD=1 USE_PROCD=1