mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-02-20 11:34:42 +02:00
base-files: show boot state on intramfs images
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20289 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
b1704a799d
commit
56f1be7e5c
@ -5,6 +5,9 @@ INITRAMFS=1
|
|||||||
|
|
||||||
. /etc/preinit
|
. /etc/preinit
|
||||||
|
|
||||||
|
set_state init
|
||||||
|
echo "- init -"
|
||||||
|
|
||||||
# if we have no root parameter, just go to running from ramfs
|
# if we have no root parameter, just go to running from ramfs
|
||||||
[ -z $rootfs ] && {
|
[ -z $rootfs ] && {
|
||||||
export NOMOUNT="No Root"
|
export NOMOUNT="No Root"
|
||||||
@ -76,3 +79,5 @@ mount -o move /sys /mnt/sys
|
|||||||
mount none /tmp -t tmpfs
|
mount none /tmp -t tmpfs
|
||||||
killall -q hotplug2
|
killall -q hotplug2
|
||||||
exec switch_root -c /dev/console /mnt /sbin/init
|
exec switch_root -c /dev/console /mnt /sbin/init
|
||||||
|
|
||||||
|
set_state done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user