diff options
author | John Crispin <blogic@openwrt.org> | 2014-12-05 08:58:06 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2014-12-05 08:58:06 +0000 |
commit | 610b545418e9151055d3b86df58aafa96205b7eb (patch) | |
tree | c60de5ab2f85e81571da3f1efa52f6517f0230de | |
parent | c2749301a6cef4d32c3bcc9138e4f750586d9a73 (diff) | |
download | upstream-610b545418e9151055d3b86df58aafa96205b7eb.tar.gz upstream-610b545418e9151055d3b86df58aafa96205b7eb.tar.bz2 upstream-610b545418e9151055d3b86df58aafa96205b7eb.zip |
octeon: sysupgrade: fix test for rootfs device
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43522 3c298f89-4303-0410-b956-a3cf2f4a3e73
-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) |