summaryrefslogtreecommitdiffstats
path: root/main/busybox/busybox.trigger
diff options
context:
space:
mode:
Diffstat (limited to 'main/busybox/busybox.trigger')
-rw-r--r--main/busybox/busybox.trigger6
1 files changed, 5 insertions, 1 deletions
diff --git a/main/busybox/busybox.trigger b/main/busybox/busybox.trigger
index 8bdef2ba5..2f69f76ce 100644
--- a/main/busybox/busybox.trigger
+++ b/main/busybox/busybox.trigger
@@ -4,7 +4,11 @@ do_bb_install=
for i in "$@"; do
case "$i" in
- /lib/modules/*) /bin/busybox depmod ${i#/lib/modules/};;
+ /lib/modules/*)
+ if [ -d "$i" ]; then
+ /bin/busybox depmod ${i#/lib/modules/}
+ fi
+ ;;
*) do_bb_install=yes;;
esac
done