1
0
Files
linux/debian/templates/headers.postinst.in
2025-05-29 17:14:07 +03:00

23 lines
484 B
Bash

#!/bin/sh
set -e
[ "$1" = configure ] || exit 0
version='@abiname@@localversion@'
have_cmd() { command -v "$1" >/dev/null || return 1 ; }
if have_cmd linux-run-hooks ; then
## linux-base (>= 4.12~)
linux-run-hooks headers postinst "${version}" -- "$@"
else
if [ -d /etc/kernel/header_postinst.d ] ; then
DEB_MAINT_PARAMS="$*" \
run-parts --report --exit-on-error \
"--arg=${version}" \
/etc/kernel/header_postinst.d
fi
fi
exit 0