Eine spezielle Fähigkeit der Open``Firmware ist es via bootscripts auf gedrückte Tasten während des Startvorgangs zu reagieren. Dazu muss zuerst auf einer zugreifbaren Partition ein entsprechendes xml Dokument erstellt werden und nachfolgend ein paar Open``Firmware Variablen gesetzt werden.
Das nachfolgende bootscript erlaubt es zwischen dem MacOS und yaboot zu wechseln. So wird nur bei gedrückter "Leertaste" yaboot gewählt.
{{{
iMac,1 PowerMac1,1 PowerBook1,1 PowerMac2,1 PowerMac3,1 PowerBook2,1 PowerBook3,1
Linux/PPC Yaboot bootloader
" get-key-map" " keyboard" open-dev $call-method
dup 20 dump
5 + c@ 08 = if
" Booting Yaboot ..." cr " boot hd:9,\yaboot" eval
else
" Booting MacOS ..." cr " boot hd:8,\\:tbxi" eval
then
}}}
Save this on your boot-partitionfile as "bootscript". Reboot your iBook while keeping the buttons "Apple", "ALT", "O" and "F" pressed. This will boot the iBook into "Open Firmware". At the prompt, type the following commands:
{{{
setenv boot-command boot
setenv boot-file hd:9,\bootscript
setenv boot-device hd:9,\bootscript
}}}
From now on Linux will boot when you keep the space bar pressed during start-up. If no keys are pressed, MacOS will boot.
Hinweis Apple: Um in die Open``Firmware zu gelangen beim Systemstart drücken. So kann zB der Start von yaboot mit `boot hd:9,yaboot` erzwungen werden (hd:9 bedeutet 9. Partition der Startfestplatte). Für dauerhafte Einstellungen folgendes eingeben:
{{{
setenv boot-device hd:9,\\yaboot
boot
}}}
Um die Open``Firmware zurückzusetzen beim Starten drücken.