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

14 lines
256 B
Bash

#!/bin/sh
#
# Kernel post-install hook for tinyramfs.
#
# Arguments passed to this script: $1 pkgname, $2 version.
#
PKGNAME="$1"
VERSION="$2"
[ -x usr/bin/tinyramfs ] || exit 0
umask 0077
usr/bin/tinyramfs -f -k ${VERSION} boot/initramfs-${VERSION}.img