summaryrefslogtreecommitdiffstats
path: root/debian/firmware-marvell-prestera.preinst
blob: 03bd9b4f167ab17cb0d08b394f3964c0f7e29884 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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