From 21ee9d504d834133a99fecfd36f1a65f8df8c096 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Sat, 22 Jun 2013 22:09:40 +0000 Subject: package: fix insmod on install the procd changes broke the postinst insmod. Signed-off-by: John Crispin git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37015 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/base-files/files/lib/functions.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'package/base-files') diff --git a/package/base-files/files/lib/functions.sh b/package/base-files/files/lib/functions.sh index 42d76fd67d..bc521b07ee 100755 --- a/package/base-files/files/lib/functions.sh +++ b/package/base-files/files/lib/functions.sh @@ -203,6 +203,13 @@ config_list_foreach() { done } +insert_modules() { + [ -d /etc/modules.d ] && { + cd /etc/modules.d + sed 's/^[^#]/insmod &/' $* | ash 2>&- || : + } +} + include() { local file -- cgit v1.2.3