summaryrefslogtreecommitdiffstats
path: root/main/busybox/busybox.trigger
blob: 8bdef2ba56bab8a7133d13ba15ea4a64fcc7506c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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