set-startup-disk.sh

This will find the first disk, and set it to boot. At least has worked for me.. if someone has a better way of finding the disk, please feel free to share it in the discussion page

code echo "set_startup_disk.sh - v0.1 ("`date`")" VOLUME=`mount | grep hfs | grep disk0 | cut -c 17- | cut -d " " -f1`
 * 1) !/bin/sh
 * 1) Get Volume

echo " Setting Startup Disk to ${VOLUME}" bless --mount "${VOLUME}" --setBoot

echo "set_startup_disk.sh - end" exit 0 code