summarylogtreecommitdiffstats
path: root/steamos-xpad-dkms.install
diff options
context:
space:
mode:
authordustball2015-07-27 20:26:29 +0200
committerdustball2015-07-27 20:26:29 +0200
commit870bad92db6b0687b58fac9eda8c3e8ee05fe767 (patch)
treeda224fd217154009d19e813cf781d1937a094bf9 /steamos-xpad-dkms.install
downloadaur-870bad92db6b0687b58fac9eda8c3e8ee05fe767.tar.gz
Initial import
Diffstat (limited to 'steamos-xpad-dkms.install')
-rw-r--r--steamos-xpad-dkms.install15
1 files changed, 15 insertions, 0 deletions
diff --git a/steamos-xpad-dkms.install b/steamos-xpad-dkms.install
new file mode 100644
index 000000000000..96f77ca08c1c
--- /dev/null
+++ b/steamos-xpad-dkms.install
@@ -0,0 +1,15 @@
+post_install() {
+ dkms install steamos-xpad/${1%%-*}
+}
+
+pre_upgrade() {
+ pre_remove ${2%%-*}
+}
+
+post_upgrade() {
+ post_install ${1%%-*}
+}
+
+pre_remove() {
+ dkms remove steamos-xpad/${1%%-*} --all
+}