mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-03-14 23:09:45 +01:00
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() {
|
||||
cd /etc/modules.d
|
||||
sed 's/^[^#]/insmod &/' $* | ash 2>&- || :
|
||||
[ -d /etc/modules.d ] && {
|
||||
cd /etc/modules.d
|
||||
sed 's/^[^#]/insmod &/' $* | ash 2>&- || :
|
||||
}
|
||||
}
|
||||
|
||||
include() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue