29 lines
499 B
Plaintext
29 lines
499 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
set -e
|
||
|
|
||
|
case "$1" in
|
||
|
configure)
|
||
|
if [ "$2" ]; then
|
||
|
update-initramfs -u -k @upstreamversion@@abiname@@localversion@
|
||
|
else
|
||
|
update-initramfs -c -k @upstreamversion@@abiname@@localversion@
|
||
|
command -v update-grub > /dev/null && update-grub
|
||
|
fi
|
||
|
;;
|
||
|
|
||
|
abort-upgrade|abort-remove|abort-deconfigure)
|
||
|
;;
|
||
|
|
||
|
*)
|
||
|
echo "postinst called with unknown argument \`$1'" >&2
|
||
|
exit 1
|
||
|
;;
|
||
|
esac
|
||
|
|
||
|
#DEBHELPER#
|
||
|
|
||
|
exit 0
|
||
|
|
||
|
|