aboutsummaryrefslogtreecommitdiffstats
path: root/main/busybox/busybox.trigger
diff options
context:
space:
mode:
Diffstat (limited to 'main/busybox/busybox.trigger')
-rw-r--r--main/busybox/busybox.trigger5
1 files changed, 4 insertions, 1 deletions
diff --git a/main/busybox/busybox.trigger b/main/busybox/busybox.trigger
index e531a45b843..e671e8cc28c 100644
--- a/main/busybox/busybox.trigger
+++ b/main/busybox/busybox.trigger
@@ -5,7 +5,10 @@ do_bb_install=
for i in "$@"; do
case "$i" in
/lib/modules/*)
- if [ -d "$i" ]; then
+ # don't run busybox depmod if we have kmod installed
+ # we dont need to run it twice.
+ target=$(readlink -f "$(command -v depmod || true)")
+ if [ -d "$i" ] && [ "$target" = "/bin/busybox" ]; then
/bin/busybox depmod ${i#/lib/modules/}
fi
;;