1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-24 05:11:46 +02:00

[package] base-files: fix a preinit hang in jffs2_ready() when no rootfs_data partition is found (#7362)

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21511 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
jow 2010-05-20 05:57:54 +00:00
parent f5275883b9
commit fddbe85964

View File

@ -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" ]
}