summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/modutils-initscripts
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-kernel/modutils-initscripts')
-rwxr-xr-xmeta/recipes-kernel/modutils-initscripts/files/modutils.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/meta/recipes-kernel/modutils-initscripts/files/modutils.sh b/meta/recipes-kernel/modutils-initscripts/files/modutils.sh
index a78adf5729..3274c25a69 100755
--- a/meta/recipes-kernel/modutils-initscripts/files/modutils.sh
+++ b/meta/recipes-kernel/modutils-initscripts/files/modutils.sh
@@ -13,14 +13,16 @@
13 13
14LOAD_MODULE=modprobe 14LOAD_MODULE=modprobe
15[ -f /proc/modules ] || exit 0 15[ -f /proc/modules ] || exit 0
16[ -f /etc/modules ] || [ -d /etc/modules-load.d ] || exit 0
17[ -e /sbin/modprobe ] || LOAD_MODULE=insmod
18 16
19if [ ! -f /lib/modules/`uname -r`/modules.dep ]; then 17# Test if modules.dep exists and has a size greater than zero
18if [ ! -s /lib/modules/`uname -r`/modules.dep ]; then
20 [ "$VERBOSE" != no ] && echo "Calculating module dependencies ..." 19 [ "$VERBOSE" != no ] && echo "Calculating module dependencies ..."
21 depmod -Ae 20 depmod -Ae
22fi 21fi
23 22
23[ -f /etc/modules ] || [ -d /etc/modules-load.d ] || exit 0
24[ -e /sbin/modprobe ] || LOAD_MODULE=insmod
25
24loaded_modules=" " 26loaded_modules=" "
25 27
26process_file() { 28process_file() {