#!/bin/sh set -e trigger_boot_archive() { if [ -z "$DEB_BOOTADM_DISABLE_UPDATE_ARCHIVE" ]; then /sbin/bootadm update-archive else echo "Skipping boot archive update (DEB_BOOTADM_DISABLE_UPDATE_ARCHIVE is set). " >&2 fi } case "$1" in configure) ;; triggered) trigger_boot_archive ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac