summaryrefslogtreecommitdiff
path: root/meta/packages/modutils/files
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/modutils/files')
-rwxr-xr-xmeta/packages/modutils/files/modutils.sh4
1 files changed, 1 insertions, 3 deletions
diff --git a/meta/packages/modutils/files/modutils.sh b/meta/packages/modutils/files/modutils.sh
index 89281276fd..35a6412065 100755
--- a/meta/packages/modutils/files/modutils.sh
+++ b/meta/packages/modutils/files/modutils.sh
@@ -5,9 +5,7 @@ LOAD_MODULE=modprobe
[ -f /etc/modules ] || exit 0
[ -e /sbin/modprobe ] || LOAD_MODULE=insmod
-if [ ! -e /sbin/depmod ]; then
- [ -f /lib/modules/`uname -r`/modules.dep ] || LOAD_MODULE=insmod
-else
+if [ ! -f /lib/modules/`uname -r`/modules.dep ]; then
[ "$VERBOSE" != no ] && echo "Calculating module dependencies ..."
depmod -Ae
fi