diff options
Diffstat (limited to 'main/busybox/busybox.trigger')
-rw-r--r-- | main/busybox/busybox.trigger | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/main/busybox/busybox.trigger b/main/busybox/busybox.trigger new file mode 100644 index 0000000000..8bdef2ba56 --- /dev/null +++ b/main/busybox/busybox.trigger @@ -0,0 +1,15 @@ +#!/bin/sh + +do_bb_install= + +for i in "$@"; do + case "$i" in + /lib/modules/*) /bin/busybox depmod ${i#/lib/modules/};; + *) do_bb_install=yes;; + esac +done + +if [ -n "$do_bb_install" ]; then + /bin/busybox --install -s +fi + |