mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-01-11 20:40: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:
parent
4d3c75a4bf
commit
c13b2a5d97
@ -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