+++ /dev/null
-# /etc/fstab: static file system information
-#
-# <file system> <mount point> <type> <options> <dump> <pass>
-proc /proc proc defaults 0 0 # <partition size in MB>
-mtd:boot /boot jffs2 defaults,noatime 1 1 # 50
-ubi:root / ubifs defaults,noatime 1 1
+++ /dev/null
-\ OLPC boot script
-
-\ fetch the /chosen/bootpath property
-" /chosen" find-package if ( phandle )
- " bootpath" rot get-package-property 0= if ( propval$ )
- get-encoded-string ( bootpath$ )
- [char] \ left-parse-string 2nip ( dn$ )
-
- \ store the first part of bootpath (up to the '\') in $DN
- dn-buf place ( )
- then
-then
-
-" ro ubi.mtd=root root=ubi:root rootfstype=ubifs video=lxfb fbcon=font:SUN12x22" to boot-file
-game-key-mask h# 80 and if
- \ boot from backup kernel
- " ${DN}\vmlinuz.bak" expand$ to boot-device
- " ${DN}\initrd.img.bak" expand$ to ramdisk
-else
- \ boot from regular kernel
- " ${DN}\vmlinuz" expand$ to boot-device
- " ${DN}\initrd.img" expand$ to ramdisk
-then
-dcon-unfreeze
-boot
deb http://localhost:9999/security squeeze/updates main contrib non-free
deb http://localhost:9999/backports squeeze-backports main contrib non-free" \
debxo-${desktop}
- ./mkubifs.sh --config-type debxo-${desktop} debxo-${desktop} ${desktop}.img
- ./mkext3.sh --config-type debxo-${desktop} debxo-${desktop} \
+ [ -f ./configs/debxo-${desktop}/fstab-ubifs ] && ./mkubifs.sh --config-type debxo-${desktop} debxo-${desktop} ${desktop}.img
+ [ -f ./configs/debxo-${desktop}/fstab-ext3 ] && ./mkext3.sh --config-type debxo-${desktop} debxo-${desktop} \
debxo-${desktop}.ext3.img
- gzip debxo-${desktop}.ext3.img
+ [ -f debxo-${desktop}.ext3.img ] && gzip debxo-${desktop}.ext3.img
mkdir -p ext3 nand
- mv debxo-${desktop}.ext3.img.gz ext3
- mv ${desktop}.img ${desktop}.dat nand
+ [ -f debxo-${desktop}.ext3.img.gz ] && mv debxo-${desktop}.ext3.img.gz ext3
+ [ -f ${desktop}.img ] && mv ${desktop}.img ${desktop}.dat nand
done