From: John Crispin Date: Fri, 5 Dec 2014 08:58:06 +0000 (+0000) Subject: octeon: sysupgrade: fix test for rootfs device X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=52f1d8ecdce7f2e60060e49da9ebfa81b42c7931;p=openwrt%2Fstaging%2Fneocturne.git octeon: sysupgrade: fix test for rootfs device Signed-off-by: Stijn Tintel SVN-Revision: 43522 --- 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)