From 52f1d8ecdce7f2e60060e49da9ebfa81b42c7931 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Fri, 5 Dec 2014 08:58:06 +0000 Subject: [PATCH] octeon: sysupgrade: fix test for rootfs device Signed-off-by: Stijn Tintel SVN-Revision: 43522 --- target/linux/octeon/base-files/lib/upgrade/platform.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/linux/octeon/base-files/lib/upgrade/platform.sh b/target/linux/octeon/base-files/lib/upgrade/platform.sh index d81d7fdec7..1df3d17e24 100755 --- a/target/linux/octeon/base-files/lib/upgrade/platform.sh +++ b/target/linux/octeon/base-files/lib/upgrade/platform.sh @@ -36,7 +36,7 @@ platform_do_upgrade() { local board=$(octeon_board_name) local rootfs="$(platform_get_rootfs)" - [ -d "${rootfs}" ] || return 1 + [ -b "${rootfs}" ] || return 1 case "$board" in erlite) -- 2.25.1