The Yosemite 10.10.3 MacBook Pro 13 is suffering from the discoveryd service problems, which prevent Safari from connecting to the Internet. There is a temporary fix until 10.10.4 that requires typing in two terminal commands:
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.discoveryd.plist
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.discoveryd.plist
Can these two commands be combined into a script that can be run as a login item, with root privileges?
If not, what's the method for creating a little application that the user can click on?