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