I have breezy installed on my Peg 2 using the grub2 method posted here not long ago. I want to put the latest verson on in its place. How can I do this? I got the instruction to make the install DVD fixes from pegasos.org but I want to make sure the boot menu script I use to load MOS, OSX and ubuntu now will still work if I install edgy over breezy or just wipe out breezy all together and replace it with edgy.
I run the boot menu first, then it calls the grub2 thing if I select ubunti from it. Below is my actual boot menu I run.
\ FORTH is identifed by a forth comment at first line
\
\ terminal control stuff
\
: TTY.CSI d# 27 EMIT ASCII [ EMIT ;
: TTY.HOME TTY.CSI ASCII H EMIT ;
: TTY.CLR_EOS TTY.CSI ASCII J EMIT ;
: TTY.HOME_CLR TTY.HOME TTY.CLR_EOS ;
\
\ boot menu stuff
\
: my-max-boot-num 4 ;
: my-boot-default 1 ;
: my-boot-delay d# 300 ; \ unit = 100 ms
: my-print-menu ( -- )
TTY.HOME_CLR
." " cr
." Pegasos II Boot Menu" cr
." " cr
." 1: Mac OS X Tiger" cr
." 2: Ubuntu (Dapper)" cr
." 3: MorphOS 1.4.5" cr
." 4: MorphOS backup" cr
." " cr
;
: my-boot-case ( num -- )
." " cr
case
1 of " hd:0 molk" endof
2 of " hd:0 grub/grubof.modules prefix=(hd,0)/grub" endof
3 of " /pci/ide/disk@1,0:0 boot.img ramdebug bootdevice HD0" endof
4 of " /pci/ide/disk@1,0:0 boot.img ramdebug bootdevice mosBAK" endof
endcase
$boot
;
: my-input-num ( wait-period max-boot-num default-num -- boot-num )
1 \ loop-inc = 1
3 pick 0 do
0d emit
." press 1-"
( wait-period max-boot-num default-num loop-inc )
2 pick ascii 0 + emit
dup 1 = if
." within "
3 pick i - d# 10 / .d
." seconds"
then
." (default: "
over ascii 0 + emit
." ) : "
d# 100 ms
key? if
key
( wait-period max-boot-num default-num loop-inc key )
dup 0d = if \ return pressed
drop leave
then
ascii 0 -
( wait-period max-boot-num default-num loop-inc num )
dup 1 5 pick
( wait-period max-boot-num default-num loop-inc num num 1 max-boot-num )
between if
rot drop swap leave
then
( wait-period max-boot-num default-num loop-inc num )
2drop 0 \ loop-inc = 0
then
dup +loop
drop
( wait-period max-boot-num boot-num )
nip nip
;
my-print-menu
my-boot-delay my-max-boot-num my-boot-default my-input-num
my-boot-case
|