From 30f1968ff3e8b236cd477de30ccac812e2c6bf9b Mon Sep 17 00:00:00 2001 From: Benjamin Dobell Date: Sat, 21 Feb 2015 00:12:51 +1100 Subject: Make OS X kext installation work irrespective of current directory --- OSX/install-kext.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OSX/install-kext.sh b/OSX/install-kext.sh index 1bd0cf8..3eaed99 100755 --- a/OSX/install-kext.sh +++ b/OSX/install-kext.sh @@ -1,6 +1,7 @@ #!/bin/bash +BASEDIR=$(dirname $0) echo 'Installing Driver...' -sudo cp -R heimdall.kext /System/Library/Extensions +sudo cp -R "$BASEDIR/heimdall.kext" /System/Library/Extensions sudo chmod -R 755 /System/Library/Extensions/heimdall.kext sudo chown -R root:wheel /System/Library/Extensions/heimdall.kext sudo kextload /System/Library/Extensions/heimdall.kext -- cgit v1.2.3