Skip to content

Instantly share code, notes, and snippets.

@gvangool
Last active October 2, 2015 13:28
Show Gist options
  • Save gvangool/2250704 to your computer and use it in GitHub Desktop.
Save gvangool/2250704 to your computer and use it in GitHub Desktop.
Endian fix on 64bit OS X

Fixing Endian VPN Client on OSX

Note

assumes Endian VPN and Tunnelblick are installed

  1. Download the file fix-endian-vpn.sh into ~/bin

  2. Mark it as executable chmod +x ~/bin/fix-endian-vpn.sh

  3. Every time you reboot, you must run the script: sudo ~/bin/fix-endian-vpn.sh

    Alternatively, you could add it to the crontab of the root user:

    sudo /bin/bash -c '(crontab -l ; echo "@reboot $HOME/bin/fix-endian-vpn.sh") | crontab -'
    
#!/bin/bash
if [[ $USER != "root" ]] ; then
echo "Run as super user!"
exit 1
fi
if [[ "$OSTYPE" != darwin* ]] ; then
echo "Only runs on Mac OS X"
exit 2
fi
if [[ ! -d "/Applications/EndianVPNClient.app" ]] ; then
echo "Requires EndianVPNClient to be installed"
exit 3
fi
if [[ ! -d "/Applications/Tunnelblick.app" ]] ; then
echo "Requires Tunnelblick to be installed"
exit 3
fi
cd /Applications/EndianVPNClient.app/Contents/Resources/openvpn
cp -r /Applications/Tunnelblick.app/Contents/Resources/{tap,tun}.kext .
./owner.sh
kextload tap.kext
kextload tun.kext
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment