X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=blobdiff_plain;f=openwrt%2Fpackage%2Fbase-files%2Fdefault%2Fetc%2Ffunctions.sh;h=d54a346315cf3f9ffc484343e093f795282a4621;hp=858dc286ad302316725f360abbafefb4088e5131;hb=067cfea0323d263103ade5b1076ddcf3820e454a;hpb=d26d4038db38d99973b9f52a68a743b2e67a2d4f diff --git a/openwrt/package/base-files/default/etc/functions.sh b/openwrt/package/base-files/default/etc/functions.sh index 858dc286ad..d54a346315 100755 --- 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>&- || : +}