Skip to content

Instantly share code, notes, and snippets.

@ijy
Forked from trinitronx/truecrypt_fix.bash
Last active August 29, 2015 14:06

Revisions

  1. @trinitronx trinitronx revised this gist Apr 22, 2013. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions truecrypt_fix.bash
    Original file line number Diff line number Diff line change
    @@ -18,3 +18,6 @@ do
    rm $lib || echo "Problem removing: ${lib}"
    ln -s "${truecrypt}/$(basename $lib)" ${lib} && echo "Linked ${lib}." || echo "Problem symlinking ${lib}"
    done

    brew prune
    brew doctor
  2. @trinitronx trinitronx revised this gist Apr 22, 2013. 1 changed file with 6 additions and 4 deletions.
    10 changes: 6 additions & 4 deletions truecrypt_fix.bash
    100644 → 100755
    Original file line number Diff line number Diff line change
    @@ -10,9 +10,11 @@ libs=( "/usr/local/lib/libmacfuse_i32.2.dylib" \

    truecrypt="/Applications/TrueCrypt.app/Contents/Resources/Library"

    [ ! -d $truecrypt ] && mkdir -p $truecrypt

    for lib in "${libs[@]}"
    do
    mv $lib "${truecrypt}/." && echo "Moved ${lib} to ${truecrypt}."
    rm $lib
    ln -s "${truecrypt}/$(basename $lib)" ${lib} && echo "Linked ${lib}."
    done
    mv $lib "${truecrypt}/" && echo "Moved ${lib} to ${truecrypt}." || echo "Problem moving: ${lib} to ${truecrypt}"
    rm $lib || echo "Problem removing: ${lib}"
    ln -s "${truecrypt}/$(basename $lib)" ${lib} && echo "Linked ${lib}." || echo "Problem symlinking ${lib}"
    done
  3. Jim Lim Jiunn Haur created this gist Oct 14, 2012.
    18 changes: 18 additions & 0 deletions truecrypt_fix.bash
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    #!/bin/bash

    libs=( "/usr/local/lib/libmacfuse_i32.2.dylib" \
    "/usr/local/lib/libosxfuse_i32.2.dylib" \
    "/usr/local/lib/libosxfuse_i64.2.dylib" \
    "/usr/local/lib/libmacfuse_i64.2.dylib" \
    "/usr/local/lib/libosxfuse_i32.la" \
    "/usr/local/lib/libosxfuse_i64.la" \
    "/usr/local/lib/pkgconfig/osxfuse.pc" )

    truecrypt="/Applications/TrueCrypt.app/Contents/Resources/Library"

    for lib in "${libs[@]}"
    do
    mv $lib "${truecrypt}/." && echo "Moved ${lib} to ${truecrypt}."
    rm $lib
    ln -s "${truecrypt}/$(basename $lib)" ${lib} && echo "Linked ${lib}."
    done