octeon: sysupgrade: fix test for rootfs device
authorJohn Crispin <john@openwrt.org>
Fri, 5 Dec 2014 08:58:06 +0000 (08:58 +0000)
committerJohn Crispin <john@openwrt.org>
Fri, 5 Dec 2014 08:58:06 +0000 (08:58 +0000)
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
SVN-Revision: 43522

target/linux/octeon/base-files/lib/upgrade/platform.sh

index d81d7fdec780b24ab6ce01fc51baf4a0d95ee2f6..1df3d17e24a33dc48b670005bf1b0b780adbd22a 100755 (executable)
@@ -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)