[OpenWrt-Devel] [PATCH 1/3] octeon: sysupgrade: fix test for rootfs device

Stijn Tintel stijn at linux-ipv6.be
Thu Dec 4 22:52:19 EST 2014


Signed-off-by: Stijn Tintel <stijn at linux-ipv6.be>
---
 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 d81d7fd..1df3d17 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.0.4
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list