Check for modules.d existence before loading modules

SVN-Revision: 7423
This commit is contained in:
Florian Fainelli 2007-05-31 15:58:43 +00:00
parent 1598ebd3fb
commit 5b78b9a5e7

View file

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