]> spindle.queued.net Git - xodist/blob - configs/debxo-lxde/olpc.fth-ext3
installer: fill in inst.fth's backup size check
[xodist] / configs / debxo-lxde / olpc.fth-ext3
1 \ OLPC boot script
2
3 \ fetch the /chosen/bootpath property
4 " /chosen" find-package  if                       ( phandle )
5   " bootpath" rot  get-package-property  0=  if   ( propval$ )
6     get-encoded-string                            ( bootpath$ )
7     [char] \ left-parse-string  2nip              ( dn$ )
8
9     \ store the first part of bootpath (up to the '\') in $DN
10     dn-buf place                                  ( )
11   then
12 then
13
14 " ro root=LABEL=DebXO video=lxfb fbcon=font:SUN12x22" to boot-file
15 game-key-mask h# 80 and if
16         \ boot from backup kernel
17         " ${DN}\vmlinuz.bak" expand$ to boot-device
18         " ${DN}\initrd.img.bak" expand$ to ramdisk
19 else
20         \ boot from regular kernel
21         " ${DN}\vmlinuz" expand$ to boot-device
22         " ${DN}\initrd.img" expand$ to ramdisk
23 then
24 dcon-unfreeze
25 boot