aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Dobell <benjamin.dobell+git@glassechidna.com.au>2015-02-21 00:12:51 +1100
committerBenjamin Dobell <benjamin.dobell+git@glassechidna.com.au>2015-02-21 00:12:51 +1100
commit30f1968ff3e8b236cd477de30ccac812e2c6bf9b (patch)
tree3fb401035f823da6b1f5109e637e22a77001b91c
parent625fdf27366e6a15a645866abc0608e3b7925663 (diff)
downloadexternal_heimdall-30f1968ff3e8b236cd477de30ccac812e2c6bf9b.zip
external_heimdall-30f1968ff3e8b236cd477de30ccac812e2c6bf9b.tar.gz
external_heimdall-30f1968ff3e8b236cd477de30ccac812e2c6bf9b.tar.bz2
Make OS X kext installation work irrespective of current directory
-rwxr-xr-xOSX/install-kext.sh3
1 files changed, 2 insertions, 1 deletions
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