summaryrefslogtreecommitdiff
path: root/target
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
parentdcc20e525b7b7814f45f542c9503175db67d40e5 (diff)
downloadmtk-20170518-52f1d8ecdce7f2e60060e49da9ebfa81b42c7931.zip
mtk-20170518-52f1d8ecdce7f2e60060e49da9ebfa81b42c7931.tar.gz
mtk-20170518-52f1d8ecdce7f2e60060e49da9ebfa81b42c7931.tar.bz2
octeon: sysupgrade: fix test for rootfs device
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be> SVN-Revision: 43522
Diffstat (limited to 'target')
-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 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)