summaryrefslogtreecommitdiffstats
path: root/debian/templates/preinst.usrmovemitigation.in
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--debian/templates/preinst.usrmovemitigation.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/debian/templates/preinst.usrmovemitigation.in b/debian/templates/preinst.usrmovemitigation.in
new file mode 100644
index 0000000..4c4789d
--- /dev/null
+++ b/debian/templates/preinst.usrmovemitigation.in
@@ -0,0 +1,7 @@
+if [ "$1" = "upgrade" ] || [ "$1" = "install" ]; then
+ for f in @files@; do
+ dpkg-divert --package firmware-@package@ --no-rename --quiet \
+ --divert "/lib/firmware/$f.usr-is-merged" \
+ --add "/lib/firmware/$f"
+ done
+fi