In DOS days I wrote such a thing. It would boot into DOS and then select based on the contents of a file whether to stay in DOS, go on to windows or boot linux using loadlin. The DOS step was necessary because of sound drivers. The utility was also accessible from linux and from windows, each allowing the 'next' OS to be selected at reboot. I am not aware of a portable API for selecting the boot device. The BIOS boot device selection is buried deep in NVRAM and different by manufacturer etc. Tinkering with NVRAM is dangerous. It is possible at least on certain boards to select a CPU multiplier or supply voltage that will fry it or the chipset. The BIOS normal UI settings prevent that but devious hacking can end up in *pow*!

Peter


=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to