From 524cd438441e99cc87e8a4352e03aac0aa61cd9f Mon Sep 17 00:00:00 2001 From: Liangbin Lian Date: Wed, 2 Jul 2025 14:23:43 +0800 Subject: [PATCH] package/dkml: supports auto unload platform drivers Signed-off-by: Liangbin Lian --- package/diy/dkml/Makefile | 2 +- package/diy/dkml/files/kmods-unload.init | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package/diy/dkml/Makefile b/package/diy/dkml/Makefile index 40166529b7..6a12b9d65e 100644 --- a/package/diy/dkml/Makefile +++ b/package/diy/dkml/Makefile @@ -1,7 +1,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=dkml -PKG_VERSION:=1.0.7 +PKG_VERSION:=1.0.8 PKG_RELEASE:=1 PKG_FLAGS:=hold essential nonshared diff --git a/package/diy/dkml/files/kmods-unload.init b/package/diy/dkml/files/kmods-unload.init index e2e63de685..6476d19d30 100755 --- a/package/diy/dkml/files/kmods-unload.init +++ b/package/diy/dkml/files/kmods-unload.init @@ -4,7 +4,7 @@ START=25 check_driver_bond() { local kmod="$1" - ls /sys/module/$kmod/drivers/*/ | grep -v '^/sys/module/' | grep -Fq : + ls /sys/module/$kmod/drivers/*/ | grep -v '^/sys/module/' | grep -Fq -e : -e . } rmmod_r() {