aports/main/busybox/busybox.trigger
Natanael Copa e98cb2ec78 main/busybox: ship new bbsuid with this package
new bbsuid creates symlinks like busybox from the busybox trigger
script.

fixes #527
2011-04-11 13:28:55 +00:00

21 lines
280 B
Bash

#!/bin/sh
do_bb_install=
for i in "$@"; do
case "$i" in
/lib/modules/*)
if [ -d "$i" ]; then
/bin/busybox depmod ${i#/lib/modules/}
fi
;;
*) do_bb_install=yes;;
esac
done
if [ -n "$do_bb_install" ]; then
/bin/bbsuid --install
/bin/busybox --install -s
fi