summarylogtreecommitdiffstats
path: root/openafs-modules-dkms.install
diff options
context:
space:
mode:
authorMichael Lass2015-06-08 20:52:48 +0200
committerMichael Lass2015-06-08 20:52:48 +0200
commit83631d6ecc801216e103c5fd5b227d496f6de6ec (patch)
tree53c8255c2eb17ee6b369f297a088ad6adacc30f1 /openafs-modules-dkms.install
downloadaur-83631d6ecc801216e103c5fd5b227d496f6de6ec.tar.gz
Initial commit
Diffstat (limited to 'openafs-modules-dkms.install')
-rw-r--r--openafs-modules-dkms.install18
1 files changed, 18 insertions, 0 deletions
diff --git a/openafs-modules-dkms.install b/openafs-modules-dkms.install
new file mode 100644
index 00000000000..3d0ae0c5262
--- /dev/null
+++ b/openafs-modules-dkms.install
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+post_install() {
+ dkms add openafs/${1%-*}
+ dkms install openafs/${1%-*}
+}
+
+pre_upgrade() {
+ pre_remove "$2"
+}
+
+post_upgrade() {
+ post_install "$1"
+}
+
+pre_remove() {
+ [ -n "${1%-*}" ] && dkms remove openafs/${1%-*} --all
+}