load kernel modules in kmod- packages from postinst scripts at install.
[openwrt/svn-archive/archive.git] / openwrt / package / base-files / default / etc / functions.sh
index 858dc28..d54a346 100755 (executable)
@@ -61,3 +61,7 @@ config_get() {
 config_set() {
        export CONFIG_${1}_${2}="${3}"
 }
+
+load_modules() {
+       sed 's/^[^#]/insmod &/' $* | ash 2>&- || :
+}