diff options
author | John Crispin <blogic@openwrt.org> | 2013-06-22 22:09:40 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2013-06-22 22:09:40 +0000 |
commit | 21ee9d504d834133a99fecfd36f1a65f8df8c096 (patch) | |
tree | 3b2f8d6125b9eb2d40301af6408bc29ca4c3c47e /package/base-files | |
parent | 81e16ac101c4fc0df7e65968fda761d72e3dbff2 (diff) | |
download | master-187ad058-21ee9d504d834133a99fecfd36f1a65f8df8c096.tar.gz master-187ad058-21ee9d504d834133a99fecfd36f1a65f8df8c096.tar.bz2 master-187ad058-21ee9d504d834133a99fecfd36f1a65f8df8c096.zip |
package: fix insmod on install
the procd changes broke the postinst insmod.
Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37015 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files')
-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 |