mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03: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:
@@ -141,9 +141,11 @@ config_foreach() {
|
||||
}
|
||||
|
||||
load_modules() {
|
||||
[ -d /etc/modules.d ] && {
|
||||
cd /etc/modules.d
|
||||
sed 's/^[^#]/insmod &/' $* | ash 2>&- || :
|
||||
}
|
||||
}
|
||||
|
||||
include() {
|
||||
local file
|
||||
|
||||
Reference in New Issue
Block a user