X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=target%2Flinux%2Fgeneric-2.6%2Ffiles%2Finit;h=1fa6a7f1f61b0b2d7ad009220c877c4696ab64bd;hb=fb9fc446526b4873389d816090734da066829dbb;hp=eda776c87d312f8c84ae7996f1496937f3ac5e20;hpb=b694d99910a6c9a713d246e0791e98a843c35c42;p=openwrt-10.03%2F.git diff --git a/target/linux/generic-2.6/files/init b/target/linux/generic-2.6/files/init index eda776c87..1fa6a7f1f 100755 --- a/target/linux/generic-2.6/files/init +++ b/target/linux/generic-2.6/files/init @@ -4,6 +4,7 @@ export PATH=/bin:/sbin:/usr/bin:/usr/sbin mount none /proc -t proc mount none /dev -t devfs +mount non /dev/pts -t devpts # the root mount point can come from the kernel command line # or it can be overridden in the preinit.arch file @@ -62,11 +63,11 @@ done COUNTER=0 while [ $COUNTER -lt 10 ]; do sleep 1 - [ -e /mnt/postinit ] && let COUNTER=10; + [ -e /mnt/etc/banner ] && let COUNTER=10; let COUNTER=COUNTER+1 done -[ -e /mnt/postinit ] || { - export FAILSAFE="No postinit" +[ -e /mnt/etc/banner ] || { + export FAILSAFE="No Openwrt FS" exec /bin/busybox init } @@ -74,7 +75,8 @@ unset rootfs mount -o move /proc /mnt/proc mount -o move /dev /mnt/dev +mount -o move /dev/pts /mnt/dev/pts mount -o move /tmp /mnt/tmp mount -o move /sys /mnt/sys - -exec switch_root -c /dev/console /mnt /postinit +mount none /tmp -t tmpfs +exec switch_root -c /dev/console /mnt /sbin/init