summaryrefslogtreecommitdiff
path: root/pcr/hwd/hwd.install
diff options
context:
space:
mode:
authoraurelien <aurelien@xload.io>2014-06-01 08:41:55 +0200
committeraurelien <aurelien@xload.io>2014-06-01 08:41:55 +0200
commit046d46bbccb15826cb67244a90c65bb7dd84279c (patch)
tree59dcd056c0e40915263abc34e9e1688baecd14c5 /pcr/hwd/hwd.install
parent66565071c1ea5fa225b2825e12f112d458a4ab37 (diff)
downloadabslibre-046d46bbccb15826cb67244a90c65bb7dd84279c.tar.gz
abslibre-046d46bbccb15826cb67244a90c65bb7dd84279c.tar.bz2
abslibre-046d46bbccb15826cb67244a90c65bb7dd84279c.zip
hwd
Diffstat (limited to 'pcr/hwd/hwd.install')
-rw-r--r--pcr/hwd/hwd.install30
1 files changed, 30 insertions, 0 deletions
diff --git a/pcr/hwd/hwd.install b/pcr/hwd/hwd.install
new file mode 100644
index 000000000..04955bfa9
--- /dev/null
+++ b/pcr/hwd/hwd.install
@@ -0,0 +1,30 @@
+# arg 1: the new package version
+post_install() {
+echo ""
+echo "lshwd dependency is replaced by pciutils and usbutils."
+echo ""
+echo "Run 'hwd -u' to update xorgtable, pci-, and usb.ids."
+echo ""
+}
+
+# arg 1: the new package version
+# arg 2: the old package version
+post_upgrade() {
+ /bin/true
+echo ""
+echo "lshwd dependency is replaced by pciutils and usbutils."
+echo ""
+echo "Run 'hwd -u' to update xorgtable, pci-, and usb.ids."
+echo ""
+
+}
+
+# arg 1: the old package version
+pre_remove() {
+ rm -R /etc/hwd >/dev/null 2>&1
+}
+
+op=$1
+shift
+
+$op $*