Last active
December 14, 2015 10:39
-
-
Save hadifarnoud/5073500 to your computer and use it in GitHub Desktop.
restart to windows script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo bless --device /dev/disk0s4 --setBoot --legacy --nextonly | |
osascript -e 'ignoring application responses' -e 'tell application "Finder" to restart' -e 'end ignoring' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sudo nano /etc/sudoers
below %admin ALL=(ALL) ALL