summaryrefslogtreecommitdiffstats
path: root/debian/firmware-intel-misc.postinst
diff options
context:
space:
mode:
Diffstat (limited to 'debian/firmware-intel-misc.postinst')
-rw-r--r--debian/firmware-intel-misc.postinst15
1 files changed, 15 insertions, 0 deletions
diff --git a/debian/firmware-intel-misc.postinst b/debian/firmware-intel-misc.postinst
new file mode 100644
index 0000000..10cc8f8
--- /dev/null
+++ b/debian/firmware-intel-misc.postinst
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ]; then
+ for f in e100/d101m_ucode.bin e100/d101s_ucode.bin e100/d102e_ucode.bin hfi1_dc8051.fw hfi1_fabric.fw hfi1_pcie.fw hfi1_sbus.fw intel/ice/ddp/ice-1.3.30.0.pkg intel/ice/ddp/ice.pkg qat_895xcc.bin qat_895xcc_mmp.bin qat_c3xxx.bin qat_c3xxx_mmp.bin qat_c62x.bin qat_c62x_mmp.bin qat_mmp.bin; do
+ dpkg-divert --package firmware-intel-misc --no-rename --quiet \
+ --divert "/lib/firmware/$f.usr-is-merged" \
+ --remove "/lib/firmware/$f"
+ done
+fi
+
+#DEBHELPER#
+
+exit 0