summarylogtreecommitdiffstats
path: root/evdi.install
diff options
context:
space:
mode:
Diffstat (limited to 'evdi.install')
-rw-r--r--evdi.install18
1 files changed, 18 insertions, 0 deletions
diff --git a/evdi.install b/evdi.install
new file mode 100644
index 00000000000..082dbc17f60
--- /dev/null
+++ b/evdi.install
@@ -0,0 +1,18 @@
+# old version (without -$pkgrel): ${1%%-*}
+# new version (without -$pkgrel): ${2%%-*}
+
+post_install() {
+ dkms install evdi/${1%%-*}
+}
+
+pre_upgrade() {
+ pre_remove ${2%%-*}
+}
+
+post_upgrade() {
+ post_install ${1%%-*}
+}
+
+pre_remove() {
+ dkms remove evdi/${1%%-*} --all
+}