I'm trying to find a programmatic solution for a friend of mine, who operates a Hackintosh system, or OS X installed on non-Macintosh Intel computers. Whenever he is installing a Mac OS X security update, he needs to re-patch his audio drivers using MultiBeast. So, I was thinking about doing this automatically, given that Apple offers a way to hook a script post_upgrade (which I'm unaware of).
OS X: Run script (or app) on a post-upgrade reboot
353 views Asked by idleberg At
2
There are 2 answers
1
On
You can:
- Sart Automator.app
- Select "Application"
- Click "Show library" in the toolbar (if hidden)
- Add "Run shell script" (from the Actions/Utilities)
- Copy&paste your script into the window
- Test it
- Save somewhere, for example you can make an "Applications" folder in your HOME (you will get an your_name.app)
- Go to System Preferences -> Accounts -> Login items
- Add this app
- test & done
chmod +xitsudo nano /Library/LaunchDaemons/version-checker.plistsudo launchctl load /Library/LaunchDaemons/version-checker.plist