diff options
author | John Crispin <john@openwrt.org> | 2013-06-22 22:09:40 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2013-06-22 22:09:40 +0000 |
commit | 43a3d87b8370872c5720b4bb6616b797486d38d8 (patch) | |
tree | 071d28d9a0101a23619d325007f6309d5ea43479 /package/base-files/files/lib | |
parent | 3df61e827932ae40fd7b1b45c1f8257c145155db (diff) | |
download | upstream-43a3d87b8370872c5720b4bb6616b797486d38d8.tar.gz upstream-43a3d87b8370872c5720b4bb6616b797486d38d8.tar.bz2 upstream-43a3d87b8370872c5720b4bb6616b797486d38d8.zip |
package: fix insmod on install
the procd changes broke the postinst insmod.
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 37015
Diffstat (limited to 'package/base-files/files/lib')
-rwxr-xr-x | package/base-files/files/lib/functions.sh | 7 |
1 files changed, 7 insertions, 0 deletions
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 |