diff options
Diffstat (limited to 'pciids-full.pkg')
-rw-r--r-- | pciids-full.pkg/postinst | 6 | ||||
-rw-r--r-- | pciids-full.pkg/prerm | 5 |
2 files changed, 11 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 diff --git a/pciids-full.pkg/prerm b/pciids-full.pkg/prerm new file mode 100644 index 0000000..fcbaf91 --- /dev/null +++ b/pciids-full.pkg/prerm @@ -0,0 +1,5 @@ +#!/bin/sh + +if [ "x${1}" = 'xremove' ]; then + update-alternatives --remove pci.ids /usr/share/misc/pci.ids.full.gz +fi |