From: Jo-Philipp Wich Date: Thu, 20 May 2010 05:57:54 +0000 (+0000) Subject: base-files: fix a preinit hang in jffs2_ready() when no rootfs_data partition is... X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d6a142375bd332ca71296d3d8ad94afd0cf996bc;p=librecmc%2Flibrecmc.git base-files: fix a preinit hang in jffs2_ready() when no rootfs_data partition is found (#7362) SVN-Revision: 21511 --- diff --git a/package/base-files/files/lib/functions/boot.sh b/package/base-files/files/lib/functions/boot.sh index e6f6633adb..f93eec99a9 100644 --- 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" ] }