Qtopia/X11: Install the right Qtopia XSession start script as well
[vuplus_openembedded] / packages / initrdscripts / initramfs-jffs2 / jffs2boot.sh
1 #!/bin/sh
2
3 echo "Starting initrd boot..."
4 mkdir /proc
5 mount -t proc proc /proc
6
7 modprobe mtdram total_size=25088 erase_size=256
8 sleep 1
9
10 ID=`grep "mtdram test device" /proc/mtd | cut -d: -f1| cut -b4-`
11
12 cat /initrd.jffs2 >/dev/mtdblock$ID
13
14 mkdir /mnt
15 mount -t jffs2 /dev/mtdblock$ID /mnt
16
17 cd /mnt
18 exec switch_root -c /dev/console /mnt /sbin/init