diff options
author | John Crispin <john@openwrt.org> | 2014-12-05 08:58:06 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2014-12-05 08:58:06 +0000 |
commit | 52f1d8ecdce7f2e60060e49da9ebfa81b42c7931 (patch) | |
tree | f6bcb1a19759403686b16bad2828bd7453d0d3f0 /target/linux/octeon | |
parent | dcc20e525b7b7814f45f542c9503175db67d40e5 (diff) | |
download | upstream-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')
-rwxr-xr-x | target/linux/octeon/base-files/lib/upgrade/platform.sh | 2 |
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) |