From 86ddd55dda013516e633cafca956ca81ec673e9b Mon Sep 17 00:00:00 2001 From: Marc Kleine-Budde Date: Wed, 2 Feb 2011 23:09:18 +0100 Subject: defaultenv/bin/boot: fix ubi root's name assignment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This patch fixes a regression introduced in commit d15cfafeef8f99ff1a47e77362d0adf1b07f26ae. While there, use "-z" to check if ubiroot variable is empty. Signed-off-by: Marc Kleine-Budde Acked-By: Eric Bénard Signed-off-by: Sascha Hauer --- defaultenv/bin/boot | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'defaultenv') diff --git a/defaultenv/bin/boot b/defaultenv/bin/boot index fa6874827b..788a781159 100644 --- a/defaultenv/bin/boot +++ b/defaultenv/bin/boot @@ -34,8 +34,8 @@ else fi if [ x$rootfs_type = xubifs ]; then - if [ x$ubiroot = x ]; then - ubiroot = "root" + if [ -z $ubiroot ]; then + ubiroot="root" fi bootargs="$bootargs root=ubi0:$ubiroot ubi.mtd=$rootfs_mtdblock" else -- cgit v1.2.3