Debian Codegraph @

debian/intel-microcode.postinst

raw
1 #!/bin/sh
2 # postinst script for intel-microcode
3 #
4 # see: dh_installdeb(1)
5
6 set -e
7
8 # summary of how this script can be called:
9 # * <postinst> `configure' <most-recently-configured-version>
10 # * <old-postinst> `abort-upgrade' <new version>
11 # * <conflictor's-postinst> `abort-remove' `in-favour' <package>
12 # <new-version>
13 # * <postinst> `abort-remove'
14 # * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
15 # <failed-install-package> <version> `removing'
16 # <conflicting-package> <version>
17 # for details, see http://www.debian.org/doc/debian-policy/ or
18 # the debian-policy package
19
20 case "$1" in
21 configure)
22 RC=0
23 dpkg-trigger --no-await update-initramfs || RC=$?
24 [ "$RC" -ne 0 ] && [ -e /etc/initramfs-tools/initramfs.conf ] && {
25 RC=0
26 update-initramfs -u || RC=$?
27 }
28 if [ "$RC" -eq 0 ] ; then
29 echo "intel-microcode: microcode will be updated at next boot" >&2
30 ls /usr/share/misc/intel-microcode* >/dev/null 2>&1 && {
31 echo "intel-microcode: possibly old microcode files from /usr/share/misc were used" >&2
32 echo "intel-microcode: remove them if this is not desired and run 'dpkg-reconfigure intel-microcode'" >&2
33 }
34 else
35 echo "intel-microcode: initramfs support missing" >&2
36 fi
37 ;;
38
39 abort-upgrade|abort-remove|abort-deconfigure)
40 ;;
41
42 *)
43 echo "postinst called with unknown argument \`$1'" >&2
44 exit 1
45 ;;
46 esac
47
48 # dh_installdeb will replace this with shell code automatically
49 # generated by other debhelper scripts.
50
51 #DEBHELPER#
52
53 exit 0