Closed DerrickRice closed 9 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"
Thank you, I just added your patch.
Here is a patch which makes this work for Mint 17. This should also make it work with Ubuntu.
The gist:
/lib/...
rather than/usr/lib/...
and error out if that is still not found.