]> spindle.queued.net Git - xodist/blobdiff - functions.sh
debxo-sugar: update packages for squeeze
[xodist] / functions.sh
index 705c4c91f6dffde7fa7fc156d57521a627d69598..7318230553a68a1ec7ce3ecbf8bb429ac8a8424f 100644 (file)
@@ -1,4 +1,4 @@
-#!/bin/sh -e
+#!/bin/bash -e
 #
 # Copyright © 2008  Andres Salomon <dilinger@queued.net>
 #
@@ -27,56 +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=mtd0
-       else
-               r="LABEL=OLPCRoot"
-       fi
-
-       cat >${mntpt}/etc/fstab<<EOF
-${r} / ${fstype} defaults,noatime 1 1
-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
-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=mtd0
-               rfs="rootfstype=jffs2"
-       else
-               r=/dev/sda1
-               rfs=""
-       fi
-
-       cat >${mntpt}/boot/olpc.fth<<EOF
-\\ OLPC boot script
-
-" ro root=${r} ${rfs} fbcon=font:SUN12x22" to boot-file
-game-key-mask h# 80 and if
-       \\ boot from backup kernel
-       " nand:\\vmlinuz.old" to boot-device
-else
-       \\ boot from regular kernel
-       " nand:\\vmlinuz" to boot-device
-then
-boot
-EOF
-}