summaryrefslogtreecommitdiffstats
path: root/debian/templates/postinst.usrmovemitigation.in
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-30 16:45:07 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-30 16:45:07 +0000
commit0ec4a0912294e5ef354ea5074e0446eb364e05c5 (patch)
tree020b497d1954ba229263a78d0b150c97a5cc57e8 /debian/templates/postinst.usrmovemitigation.in
parentMerging upstream version 20240709. (diff)
downloadfirmware-nonfree-debian.tar.xz
firmware-nonfree-debian.zip
Adding debian version 20240709-2.debian/20240709-2debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--debian/templates/postinst.usrmovemitigation.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/debian/templates/postinst.usrmovemitigation.in b/debian/templates/postinst.usrmovemitigation.in
new file mode 100644
index 0000000..6009feb
--- /dev/null
+++ b/debian/templates/postinst.usrmovemitigation.in
@@ -0,0 +1,7 @@
+if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ]; then
+ for f in @files@; do
+ dpkg-divert --package firmware-@package@ --no-rename --quiet \
+ --divert "/lib/firmware/$f.usr-is-merged" \
+ --remove "/lib/firmware/$f"
+ done
+fi