2021-02-12 17:12:24 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# /etc/kernel/postinst.d/unattended-upgrades
|
|
|
|
|
|
|
|
case "$DPKG_MAINTSCRIPT_PACKAGE::$DPKG_MAINTSCRIPT_NAME" in
|
2021-02-17 09:56:18 +00:00
|
|
|
linux-image-extra*::postrm)
|
|
|
|
exit 0;;
|
2021-02-12 17:12:24 +00:00
|
|
|
esac
|
|
|
|
|
|
|
|
if [ -d /var/run ]; then
|
|
|
|
touch /var/run/reboot-required
|
|
|
|
if ! grep -q "^$DPKG_MAINTSCRIPT_PACKAGE$" /var/run/reboot-required.pkgs 2> /dev/null ; then
|
|
|
|
echo "$DPKG_MAINTSCRIPT_PACKAGE" >> /var/run/reboot-required.pkgs
|
|
|
|
fi
|
|
|
|
fi
|