projects
/
openwrt
/
staging
/
ldir.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7d9723
)
base-files: fix a preinit hang in jffs2_ready() when no rootfs_data partition is...
author
Jo-Philipp Wich
<jow@openwrt.org>
Thu, 20 May 2010 05:57:54 +0000
(
05:57
+0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Thu, 20 May 2010 05:57:54 +0000
(
05:57
+0000)
SVN-Revision: 21511
package/base-files/files/lib/functions/boot.sh
patch
|
blob
|
history
diff --git
a/package/base-files/files/lib/functions/boot.sh
b/package/base-files/files/lib/functions/boot.sh
index e6f6633adb94123c45e45a652ed753f650e57e89..f93eec99a9f126fb53c890c34c619f4e5fb76243 100644
(file)
--- a/
package/base-files/files/lib/functions/boot.sh
+++ b/
package/base-files/files/lib/functions/boot.sh
@@
-32,6
+32,7
@@
find_mtd_part() {
jffs2_ready () {
mtdpart="$(find_mtd_part rootfs_data)"
+ [ -z "$mtdpart" ] && return 1
magic=$(hexdump $mtdpart -n 4 -e '4/1 "%02x"')
[ "$magic" != "deadc0de" ]
}