From 1ad7e33963d583ab7c56652c169e52980b4f89c0 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sun, 06 Sep 2015 12:05:50 -0400 Subject: Manage pci.ids.gz with update-alternatives This way, the pciids-* packages can be coinstalled. --- (limited to 'pciids-reduced.pkg') diff --git a/pciids-reduced.pkg/postinst b/pciids-reduced.pkg/postinst new file mode 100644 index 0000000..14a6298 --- /dev/null +++ b/pciids-reduced.pkg/postinst @@ -0,0 +1,6 @@ +#!/bin/sh + +if [ "x${1}" = 'xconfigure' ]; then + update-alternatives --install /usr/share/misc/pci.ids.gz pci.ids \ + /usr/share/misc/pci.ids.reduced.gz 10 +fi diff --git a/pciids-reduced.pkg/prerm b/pciids-reduced.pkg/prerm new file mode 100644 index 0000000..9d8f883 --- /dev/null +++ b/pciids-reduced.pkg/prerm @@ -0,0 +1,5 @@ +#!/bin/sh + +if [ "x${1}" = 'xremove' ]; then + update-alternatives --remove pci.ids /usr/share/misc/pci.ids.reduced.gz +fi -- cgit v0.9.1