[openwrt/openwrt] base-files: /lib/functions.sh: remove unused insert_modules

LEDE Commits lede-commits at lists.infradead.org
Tue Apr 17 02:33:10 PDT 2018


neoraider pushed a commit to openwrt/openwrt.git, branch master:
https://git.lede-project.org/14c78a7dfc27a0f6228a569f407b48a8f020de8d

commit 14c78a7dfc27a0f6228a569f407b48a8f020de8d
Author: Matthias Schiffer <mschiffer at universe-factory.net>
AuthorDate: Tue Apr 17 11:30:59 2018 +0200

    base-files: /lib/functions.sh: remove unused insert_modules
    
    insert_modules has been unused since r5279.
    
    Signed-off-by: Matthias Schiffer <mschiffer at universe-factory.net>
---
 package/base-files/Makefile               |  2 +-
 package/base-files/files/lib/functions.sh | 10 ----------
 2 files changed, 1 insertion(+), 11 deletions(-)

diff --git a/package/base-files/Makefile b/package/base-files/Makefile
index 576db2a..45a1f4c 100644
--- a/package/base-files/Makefile
+++ b/package/base-files/Makefile
@@ -12,7 +12,7 @@ include $(INCLUDE_DIR)/version.mk
 include $(INCLUDE_DIR)/feeds.mk
 
 PKG_NAME:=base-files
-PKG_RELEASE:=188
+PKG_RELEASE:=189
 PKG_FLAGS:=nonshared
 
 PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
diff --git a/package/base-files/files/lib/functions.sh b/package/base-files/files/lib/functions.sh
index dfadfdb..197aef1 100755
--- a/package/base-files/files/lib/functions.sh
+++ b/package/base-files/files/lib/functions.sh
@@ -153,16 +153,6 @@ config_list_foreach() {
 	done
 }
 
-insert_modules() {
-	for m in $*; do
-		if [ -f /etc/modules.d/$m ]; then
-			sed 's/^[^#]/insmod &/' /etc/modules.d/$m | ash 2>&- || :
-		else
-			modprobe $m
-		fi
-	done
-}
-
 default_prerm() {
 	local root="${IPKG_INSTROOT}"
 	local name



More information about the lede-commits mailing list