If you are using Grub for booting, your could do a script for editing the default OS and use that for rebooting.
Or alternatively use networking capabilities of Grub as shown in this exemple.
If you are using Grub for booting, your could do a script for editing the default OS and use that for rebooting.
Or alternatively use networking capabilities of Grub as shown in this exemple.