void-packages/srcpkgs/dracut/files/kernel-hook-postinst
2012-05-29 14:30:26 +02:00

15 lines
226 B
Bash

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