#!/bin/sh set -e [ "$1" = configure ] || exit 0 version='@abiname@@localversion@' image_path="/boot/@image-stem@-${version}" depmod "${version}" if command -v linux-update-symlinks >/dev/null ; then change=install [ -f "/lib/modules/${version}/.fresh-install" ] || change=upgrade linux-update-symlinks "${change}" "${version}" "${image_path}" fi rm -f "/lib/modules/${version}/.fresh-install" if [ -d /etc/kernel/postinst.d ] ; then DEB_MAINT_PARAMS="$*" \ run-parts --report --exit-on-error \ "--arg=${version}" \ "--arg=${image_path}" \ /etc/kernel/postinst.d fi exit 0