#!/bin/sh /bin/mount -t proc proc /proc /bin/mount -t sysfs sysfs /sys /sbin/ifconfig lo 127.0.0.1 /sbin/ifconfig eth0 192.168.0.100 broadcast 192.168.0.255 netmask 255.255.255.0 /sbin/route add default gw 192.168.0.1 dev eth0 #case `/bin/cat /proc/cmdline | /bin/sed 's/ /\n/g' | /bin/sed -n '/root=*/p'` in # 'root=/dev/nfs') echo "Boot from NFS..." /bin/mount -t nfs -o nolock 192.168.0.200:/home/rootfs/rootfs /root # ;; # *) # echo "Boot from MTD(JFFS2)..." # cd /root # /bin/mount -t jffs2 /dev/mtd0 /mnt # /bin/tar jxf /mnt/rootfs.tb2 # /bin/sleep 1 # /bin/umount /mnt # ;; #esac /bin/umount /sys /bin/umount /proc cd /root sbin/pivot_root . initramfs exec usr/sbin/chroot . /sbin/init < /dev/console > /dev/console 2>&1