aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/octeon/base-files/lib
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2014-12-05 08:58:06 +0000
committerJohn Crispin <john@openwrt.org>2014-12-05 08:58:06 +0000
commit52f1d8ecdce7f2e60060e49da9ebfa81b42c7931 (patch)
treef6bcb1a19759403686b16bad2828bd7453d0d3f0 /target/linux/octeon/base-files/lib
parentdcc20e525b7b7814f45f542c9503175db67d40e5 (diff)
downloadupstream-52f1d8ecdce7f2e60060e49da9ebfa81b42c7931.tar.gz
upstream-52f1d8ecdce7f2e60060e49da9ebfa81b42c7931.tar.bz2
upstream-52f1d8ecdce7f2e60060e49da9ebfa81b42c7931.zip
octeon: sysupgrade: fix test for rootfs device
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be> SVN-Revision: 43522
Diffstat (limited to 'target/linux/octeon/base-files/lib')
-rwxr-xr-xtarget/linux/octeon/base-files/lib/upgrade/platform.sh2
1 files changed, 1 insertions, 1 deletions
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)