Hey Everyone, I wanted to add to this.
Recently I messed up my OS9 boot and my ibook wasnt booting. It took me a couple of weeks to figure out how to add this script on the nvram in open firmware, because I didnt have any access to any OS. Here is what I did. (All of the commands I am going to post below are in Open Firmware)
In open firmware there is a variable called nvramrc
, this var contains the contents (in open firmware language) of the script shared above. This is the script that patches your ibook G4 to make it bootable.
First thing to check is if you have the var set up in open firmware (if you dont, dont worry, I will explain how to adapt the bash script above to make it work) To do so type:
printenv nvramrc