From 43a3d87b8370872c5720b4bb6616b797486d38d8 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 SVN-Revision: 37015 --- package/base-files/files/lib/functions.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'package') diff --git a/package/base-files/files/lib/functions.sh b/package/base-files/files/lib/functions.sh index 42d76fd..bc521b0 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.1