summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2010-03-18 19:19:21 +0000
committerGabor Juhos <juhosg@openwrt.org>2010-03-18 19:19:21 +0000
commit706b6b846f89345851f9bbc30c1aefc6cf65e911 (patch)
treed534de0d92643b69325803051d15b0ce4ceb7d95
parent18aa68d3683a31dd8528c5baa1758fc91d379bf2 (diff)
downloadmtk-20170518-706b6b846f89345851f9bbc30c1aefc6cf65e911.zip
mtk-20170518-706b6b846f89345851f9bbc30c1aefc6cf65e911.tar.gz
mtk-20170518-706b6b846f89345851f9bbc30c1aefc6cf65e911.tar.bz2
base-files: show boot state on intramfs images
SVN-Revision: 20289
-rwxr-xr-xtarget/linux/generic-2.6/base-files/init5
1 files changed, 5 insertions, 0 deletions
diff --git a/target/linux/generic-2.6/base-files/init b/target/linux/generic-2.6/base-files/init
index a3387eb..9e8ba7c 100755
--- a/target/linux/generic-2.6/base-files/init
+++ b/target/linux/generic-2.6/base-files/init
@@ -5,6 +5,9 @@ INITRAMFS=1
. /etc/preinit
+set_state init
+echo "- init -"
+
# if we have no root parameter, just go to running from ramfs
[ -z $rootfs ] && {
export NOMOUNT="No Root"
@@ -76,3 +79,5 @@ mount -o move /sys /mnt/sys
mount none /tmp -t tmpfs
killall -q hotplug2
exec switch_root -c /dev/console /mnt /sbin/init
+
+set_state done