summaryrefslogtreecommitdiffstats
path: root/pciids-full.pkg/postinst
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2015-09-06 12:05:50 (EDT)
committer P. J. McDermott <pj@pehjota.net>2015-09-06 12:05:50 (EDT)
commit1ad7e33963d583ab7c56652c169e52980b4f89c0 (patch)
treee8a10f93e4240dc079b838aec24d5cd5b9b2d1d7 /pciids-full.pkg/postinst
parent89ddced317d10a923f02b3f59c0c55cd0f3fbc38 (diff)
Manage pci.ids.gz with update-alternatives
This way, the pciids-* packages can be coinstalled.
Diffstat (limited to 'pciids-full.pkg/postinst')
-rw-r--r--pciids-full.pkg/postinst6
1 files changed, 6 insertions, 0 deletions
diff --git a/pciids-full.pkg/postinst b/pciids-full.pkg/postinst
new file mode 100644
index 0000000..c4d992f
--- /dev/null
+++ b/pciids-full.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.full.gz 20
+fi