]> code.delx.au - refind/blobdiff - mountesp
Merge branch 'master' of ssh://git.code.sf.net/p/refind/code
[refind] / mountesp
index 6459199b19c08b68674cdcc88e268e7e0a23131f..03dc5c0a179be913baad88c9a8a576abc5871c97 100755 (executable)
--- a/mountesp
+++ b/mountesp
@@ -50,11 +50,11 @@ MountOSXESP() {
         fi
         MountPoint="/Volumes/ESP"
         mkdir /Volumes/ESP &> /dev/null
-        mount -t msdos "$Esp" /Volumes/ESP
+        mount -t msdos "$Esp" $MountPoint
         # Some systems have HFS+ "ESPs." They shouldn't, but they do. If this is
         # detected, mount it as such and set appropriate options.
         if [[ $? != 0 ]] ; then
-            mount -t hfs "$Esp" /Volumes/Esp
+            mount -t hfs "$Esp" $MountPoint
             if [[ $? != 0 ]] ; then
                 echo "Unable to mount ESP!\n"
                 exit 1