summaryrefslogtreecommitdiffstats
path: root/debian/firmware-misc-nonfree.preinst
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--debian/firmware-misc-nonfree.preinst15
1 files changed, 15 insertions, 0 deletions
diff --git a/debian/firmware-misc-nonfree.preinst b/debian/firmware-misc-nonfree.preinst
new file mode 100644
index 0000000..9c0053c
--- /dev/null
+++ b/debian/firmware-misc-nonfree.preinst
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" = "upgrade" ] || [ "$1" = "install" ]; 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" \
+ --add "/lib/firmware/$f"
+ done
+fi
+
+#DEBHELPER#
+
+exit 0