Update init to use /etc/banner for presence test, remove postinit
SVN-Revision: 4604
This commit is contained in:
parent
43459c3f82
commit
b52f59ef24
2 changed files with 5 additions and 9 deletions
|
@ -62,11 +62,11 @@ done
|
||||||
COUNTER=0
|
COUNTER=0
|
||||||
while [ $COUNTER -lt 10 ]; do
|
while [ $COUNTER -lt 10 ]; do
|
||||||
sleep 1
|
sleep 1
|
||||||
[ -e /mnt/postinit ] && let COUNTER=10;
|
[ -e /mnt/etc/banner ] && let COUNTER=10;
|
||||||
let COUNTER=COUNTER+1
|
let COUNTER=COUNTER+1
|
||||||
done
|
done
|
||||||
[ -e /mnt/postinit ] || {
|
[ -e /mnt/etc/banner ] || {
|
||||||
export FAILSAFE="No postinit"
|
export FAILSAFE="No Openwrt FS"
|
||||||
exec /bin/busybox init
|
exec /bin/busybox init
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -76,5 +76,5 @@ mount -o move /proc /mnt/proc
|
||||||
mount -o move /dev /mnt/dev
|
mount -o move /dev /mnt/dev
|
||||||
mount -o move /tmp /mnt/tmp
|
mount -o move /tmp /mnt/tmp
|
||||||
mount -o move /sys /mnt/sys
|
mount -o move /sys /mnt/sys
|
||||||
|
mount none /tmp -t tmpfs
|
||||||
exec switch_root -c /dev/console /mnt /postinit
|
exec switch_root -c /dev/console /mnt /sbin/init
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
#!/bin/ash
|
|
||||||
mount none /dev -t devfs
|
|
||||||
exec /bin/busybox init
|
|
||||||
|
|
Loading…
Reference in a new issue