diff options
Diffstat (limited to 'debian/firmware-marvell-prestera.preinst')
-rw-r--r-- | debian/firmware-marvell-prestera.preinst | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/debian/firmware-marvell-prestera.preinst b/debian/firmware-marvell-prestera.preinst new file mode 100644 index 0000000..03bd9b4 --- /dev/null +++ b/debian/firmware-marvell-prestera.preinst @@ -0,0 +1,15 @@ +#!/bin/sh + +set -e + +if [ "$1" = "upgrade" ] || [ "$1" = "install" ]; then + for f in mrvl/prestera/mvsw_prestera_fw-v2.0.img; do + dpkg-divert --package firmware-marvell-prestera --no-rename --quiet \ + --divert "/lib/firmware/$f.usr-is-merged" \ + --add "/lib/firmware/$f" + done +fi + +#DEBHELPER# + +exit 0 |