1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-25 03:32:25 +02:00

Update init to use /etc/banner for presence test, remove postinit

git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@4604 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
groz 2006-08-18 22:37:40 +00:00
parent ae98e0cfbc
commit b2afe21618
2 changed files with 5 additions and 9 deletions

View File

@ -62,11 +62,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
}
@ -76,5 +76,5 @@ mount -o move /proc /mnt/proc
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

View File

@ -1,4 +0,0 @@
#!/bin/ash
mount none /dev -t devfs
exec /bin/busybox init