void-packages/srcpkgs/mkinitcpio/files/kernel-hook-postinst

16 lines
256 B
Text
Raw Normal View History

2015-06-24 21:54:11 +00:00
#!/bin/sh
#
# Kernel post-install hook for mkinitcpio.
#
# Arguments passed to this script: $1 pkgname, $2 version.
#
PKGNAME="$1"
VERSION="$2"
if [ ! -x bin/mkinitcpio ]; then
exit 0
fi
mkinitcpio -g boot/initramfs-${VERSION}.img -k ${VERSION}
exit $?