summaryrefslogtreecommitdiffstats
path: root/debian/firmware-misc-nonfree.postinst
blob: 2361db7c0a4acaa9fe1ee0d57bbe6377ad122ddd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh

set -e

case "$1" in
	configure)
		dpkg-trigger --no-await update-initramfs
	;;

	abort-upgrade|abort-remove|abort-deconfigure)
	;;

	*)
		echo "postinst called with unknown argument \`$1'" 1>&2
		exit 1
	;;
esac

if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ]; then
	for f in ti/vpdma-1b8.bin; do
		dpkg-divert --package firmware-misc-nonfree --no-rename --quiet \
			--divert "/lib/firmware/$f.usr-is-merged" \
			--remove "/lib/firmware/$f"
	done
fi

#DEBHELPER#

exit 0