Check for modules.d existence before loading modules
SVN-Revision: 7423
This commit is contained in:
parent
1598ebd3fb
commit
5b78b9a5e7
1 changed files with 4 additions and 2 deletions
|
@ -141,8 +141,10 @@ config_foreach() {
|
||||||
}
|
}
|
||||||
|
|
||||||
load_modules() {
|
load_modules() {
|
||||||
|
[ -d /etc/modules.d ] && {
|
||||||
cd /etc/modules.d
|
cd /etc/modules.d
|
||||||
sed 's/^[^#]/insmod &/' $* | ash 2>&- || :
|
sed 's/^[^#]/insmod &/' $* | ash 2>&- || :
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
include() {
|
include() {
|
||||||
|
|
Loading…
Reference in a new issue