package/dkml: ignore empty module on load

This commit is contained in:
Liangbin Lian 2025-05-14 10:02:41 +08:00
parent 0ea51a164b
commit dafcc90340
2 changed files with 2 additions and 1 deletions

View File

@ -1,7 +1,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=dkml
PKG_VERSION:=1.0.6
PKG_VERSION:=1.0.7
PKG_RELEASE:=1
PKG_FLAGS:=hold essential nonshared

View File

@ -19,6 +19,7 @@ boot() {
local info kmod action p1 ignore
local enable="$( uci -q get kmods.kmods.enable )"
ls /etc/modules-pending.d/ 2>/dev/null | while read info; do
[ -s "/etc/modules-pending.d/$info" ] || continue
if echo "$enable" | grep -qFw "$info" ; then
action=enable_kmod
else