mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-18 10:46:41 +00:00
Check for modules.d existence before loading modules
SVN-Revision: 7423
This commit is contained in:
parent
1598ebd3fb
commit
5b78b9a5e7
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user