]> spindle.queued.net Git - xodist/blobdiff - functions.sh
debxo-sugar: update packages for squeeze
[xodist] / functions.sh
index 4acc14f949a6f366af9a978b88bb28e1757d4a4d..7318230553a68a1ec7ce3ecbf8bb429ac8a8424f 100644 (file)
@@ -27,85 +27,3 @@ check_for_cmds()
 
        return 0
 }
-
-# @mntpt - path to mounted root directory
-# @fstype - the root filesystem type (in a form that 'mount' understands)
-create_fstab()
-{
-       mntpt="$1"
-       fstype="$2"
-
-       if [ "${fstype}" = "jffs2" ]; then
-               r=mtd:root
-       else
-               r="LABEL=${IMG_LABEL}"
-       fi
-
-       echo "${r} / ${fstype} defaults,noatime 1 1" >${mntpt}/etc/fstab
-       if [ "${fstype}" = "jffs2" ]; then
-               echo "mtd:boot /boot jffs2 defaults,noatime 1 1" >>${mntpt}/etc/fstab
-       fi
-
-       cat >>${mntpt}/etc/fstab<<EOF
-devpts /dev/pts devpts gid=5,mode=620 0 0
-tmpfs /dev/shm tmpfs defaults,size=15% 0 0
-proc /proc proc defaults 0 0
-sysfs /sys sysfs defaults 0 0
-none /ofw promfs defaults 0 0
-tmpfs /var/cache/apt/cache tmpfs defaults 0 0
-EOF
-}
-
-# @mntpt - path to mounted root directory
-# @fstype - the root filesystem type (in a form that 'mount' understands)
-create_ofwboot()
-{
-       mntpt="$1"
-       fstype="$2"
-
-       if [ "${fstype}" = "jffs2" ]; then
-               r="mtd:root"
-               rfs="rootfstype=jffs2"
-       else
-               r="LABEL=${IMG_LABEL}"
-               rfs=""
-       fi
-
-       cat >${mntpt}/boot/olpc.fth<<EOF
-\\ 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 root=${r} ${rfs} video=lxfb fbcon=font:SUN12x22" to boot-file
-game-key-mask h# 80 and if
-       \\ boot from backup kernel
-       " \${DN}\\vmlinuz.old" expand\$ to boot-device
-       " \${DN}\\initrd.img.old" expand\$ to ramdisk
-else
-       \\ boot from regular kernel
-       " \${DN}\\vmlinuz" expand\$ to boot-device
-       " \${DN}\\initrd.img" expand\$ to ramdisk
-then
-dcon-unfreeze
-boot
-EOF
-}
-
-start_logging()
-{
-    logpipe="$1".pipe
-    trap "rm -f $logpipe" 0
-    mknod $logpipe p
-    tee "$1".log <$logpipe &
-    trap "kill $!; rm -f $logpipe" 0
-    exec >$logpipe 2>&1
-}