#!/bin/sh
echo Enabling OS 9 booting...
echo "You may have to enter your password"
# Use nvram command to setup nvramrc with script to make open firmware changes
sudo nvram nvramrc='" /" select-dev
" PowerBook4,3" encode-string " model" property
" PowerBook4,3" encode-string " MacRISC" encode-string encode+ " MacRISC2" encode-string encode+ " MacRISC3" encode-string encode+ " Power Macintosh" encode-string encode+ " compatible" property
00000000 " graphic-options" get-my-property 2drop !
unselect

" /cpus/PowerPC,G4@0" find-package if drop " /cpus/PowerPC,G4@0" find-device 80010201 encode-int " cpu-version" property then

device-end \ PLX-OS9-PATCH
'
# Enable use of nvramrc on boot. Change to "false" if you want to disable again. Or just clear/reset nvram.
sudo nvram "use-nvramrc?"=true
echo done.
