#!/bin/sh

# mount filesystems
/bin/mount -t proc /proc /proc
/bin/mount -t sysfs sysfs /sys
/bin/mount -t tmpfs tmpfs /dev

# create necessary devices
/bin/mknod /dev/null c 1 3
/bin/mkdir /dev/pts
/bin/mount -t devpts devpts /dev/pts
/bin/mknod /dev/ts c 10 16
/bin/mknod /dev/rtc c 10 135

# comment next when you use alsa
#/bin/mknod /dev/audio c 14 4

echo "Starting udevd ..."
/sbin/udevd --daemon
/sbin/udevstart

# networking
#/sbin/ifconfig lo 127.0.0.1 up

# telnet server
#/sbin/telnetd &

# NFS mounting
#/sbin/portmap

# mixer volume
/usr/bin/mixer vol 80 > /dev/null 2>&1

# set the system time from the hardware clock
/sbin/hwclock -s

# run cpufreqd
#/cpufreqd/sbin/cpufreqd

# mount mtd partitions
#/bin/mount -t yaffs2 /dev/mtdblock2 /mnt/mtdblock2
#/bin/mount -t yaffs2 /dev/mtdblock3 /mnt/mtdblock3
#/bin/mount -t vfat /dev/mtdblock5 /mnt/mtdblock5

# enable swap space
swapon /dev/mmcblk0p3

# run qtopia
/usr/bin/runqpe &

