projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
load kernel modules in kmod- packages from postinst scripts at install.
[openwrt.git]
/
openwrt
/
package
/
base-files
/
default
/
etc
/
functions.sh
diff --git
a/openwrt/package/base-files/default/etc/functions.sh
b/openwrt/package/base-files/default/etc/functions.sh
index 858dc286ad302316725f360abbafefb4088e5131..d54a346315cf3f9ffc484343e093f795282a4621 100755
(executable)
--- a/
openwrt/package/base-files/default/etc/functions.sh
+++ b/
openwrt/package/base-files/default/etc/functions.sh
@@
-61,3
+61,7
@@
config_get() {
config_set() {
export CONFIG_${1}_${2}="${3}"
}
+
+load_modules() {
+ sed 's/^[^#]/insmod &/' $* | ash 2>&- || :
+}