projects
/
openwrt-10.03
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[backfire] merge r26961
[openwrt-10.03/.git]
/
target
/
linux
/
generic-2.6
/
base-files
/
init
diff --git
a/target/linux/generic-2.6/base-files/init
b/target/linux/generic-2.6/base-files/init
index 45328384e98bbb7a976c25c79fedd1136bd558d8..9e8ba7c5eb0c3f2809d0afb8b4ffcab39011f3da 100755
(executable)
--- 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
. /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"
# if we have no root parameter, just go to running from ramfs
[ -z $rootfs ] && {
export NOMOUNT="No Root"
@@
-74,4
+77,7
@@
mount -o move /dev/pts /mnt/dev/pts
mount -o move /tmp /mnt/tmp
mount -o move /sys /mnt/sys
mount none /tmp -t tmpfs
mount -o move /tmp /mnt/tmp
mount -o move /sys /mnt/sys
mount none /tmp -t tmpfs
+killall -q hotplug2
exec switch_root -c /dev/console /mnt /sbin/init
exec switch_root -c /dev/console /mnt /sbin/init
+
+set_state done