xbps-base-files: some changes to all triggers.

--HG--
extra : convert_revision : 2f3a39a7d1853268b84c5087cbbf5e74044c20f0
This commit is contained in:
Juan RP 2009-05-19 02:13:58 +02:00
parent 38e6679ff5
commit 5b3489c9ea
13 changed files with 56 additions and 85 deletions

View file

@ -9,19 +9,14 @@
# $3 = pkgname
# $4 = version
#
trigger="initramfs-tools"
case "$1" in
targets)
echo "post-install"
;;
run)
[ ! -x usr/sbin/update-initramfs ] && exit 0
[ ! -x lib/rc/bin/mountinfo ] && exit 0
[ "$2" != "post-install" ] && exit 1
echo "Running $trigger trigger..."
initramfs_cmd="update-initramfs"
if [ "$3" = "kernel" -a ! -f ./var/lib/initramfs-tools/$4 ]; then