summaryrefslogtreecommitdiffstats
path: root/main/busybox/busybox.trigger
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-08-14 09:30:35 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-08-14 09:31:52 +0000
commit13f7afcb44ab3fc34ab250aa7df135e1cb684cac (patch)
treea25fad57184ac951bf2d11564c06d2bc5c2e69f5 /main/busybox/busybox.trigger
parente64df37ddfc025e7437485894b812dcffc3b087d (diff)
downloadaports-13f7afcb44ab3fc34ab250aa7df135e1cb684cac.tar.bz2
aports-13f7afcb44ab3fc34ab250aa7df135e1cb684cac.tar.xz
main/busybox: use triggers in apk-tools
Diffstat (limited to 'main/busybox/busybox.trigger')
-rw-r--r--main/busybox/busybox.trigger15
1 files changed, 15 insertions, 0 deletions
diff --git a/main/busybox/busybox.trigger b/main/busybox/busybox.trigger
new file mode 100644
index 000000000..8bdef2ba5
--- /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
+