diff options
Diffstat (limited to 'pciutils.pkg')
-rw-r--r-- | pciutils.pkg/files | 2 | ||||
-rw-r--r-- | pciutils.pkg/postinst | 6 | ||||
-rw-r--r-- | pciutils.pkg/prerm | 5 |
3 files changed, 12 insertions, 1 deletions
diff --git a/pciutils.pkg/files b/pciutils.pkg/files index 0e77f82..9d67372 100644 --- a/pciutils.pkg/files +++ b/pciutils.pkg/files @@ -1,2 +1,2 @@ -/usr/bin/lspci +/usr/bin/lspci.pciutils /usr/bin/setpci diff --git a/pciutils.pkg/postinst b/pciutils.pkg/postinst new file mode 100644 index 0000000..12f7a19 --- /dev/null +++ b/pciutils.pkg/postinst @@ -0,0 +1,6 @@ +#!/bin/sh + +if [ "x${1}" = 'xconfigure' ]; then + update-alternatives --install /usr/bin/lspci lspci \ + /usr/bin/lspci.pciutils 20 +fi diff --git a/pciutils.pkg/prerm b/pciutils.pkg/prerm new file mode 100644 index 0000000..94877d1 --- /dev/null +++ b/pciutils.pkg/prerm @@ -0,0 +1,5 @@ +#!/bin/sh + +if [ "x${1}" = 'xremove' ]; then + update-alternatives --remove lspci /usr/bin/lspci.pciutils +fi |