he1per / psmouse-dkms-alpsv7

Linux kernel driver for newer ALPS touchpads (as of Mar 2014)
26 stars 26 forks source link

Mint (and Ubuntu) support #9

Closed DerrickRice closed 9 years ago

DerrickRice commented 10 years ago

Here is a patch which makes this work for Mint 17. This should also make it work with Ubuntu.

The gist:

DerrickRice commented 10 years ago
diff --git a/install.sh b/install.sh
index 19555cb..5236e47 100755
--- a/install.sh
+++ b/install.sh
@@ -1,8 +1,16 @@
-#!/bin/sh
+#!/bin/bash

 source ./dkms.conf

 MDIR="/usr/lib/modules/$(uname -r)"
+if [ ! -d "$MDIR" ]; then
+    MDIR="/lib/modules/$(uname -r)"
+    if [ ! -d "$MDIR"]; then
+        echo "Error: Could not find module directory!" >&2
+        exit 1
+    fi
+fi
+
 NEWMDIR="$MDIR/${DEST_MODULE_LOCATION[0]}"

 MFILE="$MDIR/kernel/drivers/input/mouse/${BUILT_MODULE_NAME[0]}.ko"
he1per commented 9 years ago

Thank you, I just added your patch.