git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@4604
3c298f89-4303-0410-b956-
a3cf2f4a3e73
COUNTER=0
while [ $COUNTER -lt 10 ]; do
sleep 1
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
let COUNTER=COUNTER+1
done
-[ -e /mnt/postinit ] || {
- export FAILSAFE="No postinit"
+[ -e /mnt/etc/banner ] || {
+ export FAILSAFE="No Openwrt FS"
mount -o move /dev /mnt/dev
mount -o move /tmp /mnt/tmp
mount -o move /sys /mnt/sys
mount -o move /dev /mnt/dev
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
+++ /dev/null
-#!/bin/ash
-mount none /dev -t devfs
-exec /bin/busybox init
-