Skip to content

Instantly share code, notes, and snippets.

@Leask
Created August 22, 2013 05:01
Show Gist options
  • Select an option

  • Save Leask/6303382 to your computer and use it in GitHub Desktop.

Select an option

Save Leask/6303382 to your computer and use it in GitHub Desktop.
Replace /Applications/PCKeyboardHack.app/Contents/Library/scripts/kext.sh with this version. This cheat runs your PCKeyboardHack.app on OS X Mavericks.
#!/bin/sh
PATH=/bin:/sbin:/usr/bin:/usr/sbin; export PATH
basedir="/Applications/PCKeyboardHack.app/Contents/Library"
kextfile=''
uname=`uname -r`
case "${uname%%.*}" in
11)
kextfile="$basedir/PCKeyboardHack.10.7.kext"
;;
12)
kextfile="$basedir/PCKeyboardHack.10.8.kext"
;;
13)
kextfile="$basedir/PCKeyboardHack.10.8.kext"
;;
esac
if [ "x$kextfile" == 'x' ]; then
exit 1
fi
if [ "$1" == 'unload' ]; then
kextunload -b org.pqrs.driver.PCKeyboardHack
else
kextload "$kextfile"
fi
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment