Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

expede

macrumors regular
Original poster
Jan 15, 2018
236
67
Sweden
Hi!

This is what I want:

1 Would like to get this line executed "sudo bless -device /dev/disk5s2 -mount /Volumes/BOOTCAMP -setBoot -nextonly"

2 But what do I need to ad to make the script automaticly execute my "password"

3 What shall I ad to make the osx reboot direct after the password?

Then I can save it in a file and do a "chmod 700" to make it executable. I what to just double-click on the file. I do not know Unix. I am just a user.

Best regads

/Per
 
echo password | sudo -S bless -device /dev/disk5s2 -mount /Volumes/BOOTCAMP -setBoot -nextonly" && sudo reboot
 
  • Like
Reactions: expede
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.