package/dkml: fix potential bug

This commit is contained in:
Liangbin Lian 2024-02-28 15:31:09 +08:00
parent 4642f53357
commit a6e445060e
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -16,7 +16,7 @@ disable_kmod() {
}
boot() {
local info kmod action p1
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
if echo "$enable" | grep -qFw "$info" ; then
@ -25,7 +25,7 @@ boot() {
action=disable_kmod
fi
echo "$action.group $info" >>/dev/kmsg
while read p1; do
while read p1 ignore; do
kmod=$(echo "$p1" | grep -o '^[^#]*')
if [[ -n "$kmod" ]]; then
echo "$action $kmod" >>/dev/kmsg