Hi!
Should it not be;
"sudo bless -device /dev/diskXsX -mount /Volumes/BOOTCAMP -setBoot -nextonly" ?
Best regards
/Per
that's fine (except its /Volumes/EFI when typed from the terminal, but the password "mypassword"
with administrator privileges part in what I wrote takes care of the sudo part in a script.
What I typed works totally fine in a script as long as the X in /dev/diskXs1 is the disk with the Windows volume. The problem is that the disk number X is assigned by the order that multiple physical discs in the Mac Pro are enumerated at power up and that can (and often does) change from one power-up to another power-up in a non-predictable way. What is needed is a more complex script that first checks which disk has the Windows volume - with something like
diskutil info "BOOTCAMP" |grep Node, which returns
Device Node: /dev/diskX
and then extracts X from that and replaces the 2 (making it diskX instead of disk2) in my line of the script.
I'm not a Unix guy, not familiar with scripting, etc. so I don't know how to write a script to do that. (I can figure it out if I have time, but I have lots of higher priority things to do - I don't mod Macs as a hobby). Which is why I asked the OP what script he was using to make this work ALL the time.