projects
/
openwrt-10.03
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update init to use /etc/banner for presence test, remove postinit
[openwrt-10.03/.git]
/
target
/
linux
/
generic-2.6
/
files
/
init
diff --git
a/target/linux/generic-2.6/files/init
b/target/linux/generic-2.6/files/init
index eda776c87d312f8c84ae7996f1496937f3ac5e20..0c60acd63976f5ad5c33f04452b8a04272d90493 100755
(executable)
--- a/
target/linux/generic-2.6/files/init
+++ b/
target/linux/generic-2.6/files/init
@@
-62,11
+62,11
@@
done
COUNTER=0
while [ $COUNTER -lt 10 ]; do
sleep 1
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
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
}
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
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 /
post
init
+mount none /tmp -t tmpfs
+exec switch_root -c /dev/console /mnt /
sbin/
init