summarylogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
Diffstat (limited to 'install')
-rw-r--r--install24
1 files changed, 24 insertions, 0 deletions
diff --git a/install b/install
new file mode 100644
index 000000000000..32f6ad6669ec
--- /dev/null
+++ b/install
@@ -0,0 +1,24 @@
+PKGVER="$(ls /usr/src/ | grep rts_bpp | sed 's/^.*-//')"
+
+post_install() {
+ dkms add -m "rts_bpp/${PKGVER}"
+ dkms build -m "rts_bpp/${PKGVER}"
+ dkms install -m "rts_bpp/${PKGVER}"
+ depmod -a
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ dkms remove -m "rts_bpp/${PKGVER}" --all
+}
+
+pre_upgrade() {
+ pre_remove
+}
+
+post_remove() {
+ depmod -a
+}