1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2025-01-11 20:50:15 +02:00

Check for modules.d existence before loading modules

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7423 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
florian 2007-05-31 15:58:43 +00:00
parent 4d3c75a4bf
commit c13b2a5d97

View File

@ -141,8 +141,10 @@ config_foreach() {
} }
load_modules() { load_modules() {
cd /etc/modules.d [ -d /etc/modules.d ] && {
sed 's/^[^#]/insmod &/' $* | ash 2>&- || : cd /etc/modules.d
sed 's/^[^#]/insmod &/' $* | ash 2>&- || :
}
} }
include() { include() {