aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorStijn Tintel <stijn@linux-ipv6.be>2019-11-30 20:17:42 +0200
committerStijn Tintel <stijn@linux-ipv6.be>2019-11-30 20:19:12 +0200
commit291d79935e9c4a974b037b6bed733ce92d4242e3 (patch)
tree6cd4f600ad6fc88bcb383bc89eb1b986d2043b84 /target
parent3f79aaa2979793c054eae2c8b4058c8c7fccdbe7 (diff)
downloadupstream-291d79935e9c4a974b037b6bed733ce92d4242e3.tar.gz
upstream-291d79935e9c4a974b037b6bed733ce92d4242e3.tar.bz2
upstream-291d79935e9c4a974b037b6bed733ce92d4242e3.zip
octeon: fix sysupgrade
Sysupgrade was failing due to incorrect replacement of backticks: /sbin/sysupgrade: /lib/upgrade/platform.sh: line 101: syntax error: missing '))' Fixes: 0bbfc3dff719 ("octeon: replace backticks by $(...)") Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Diffstat (limited to 'target')
-rwxr-xr-xtarget/linux/octeon/base-files/lib/upgrade/platform.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/octeon/base-files/lib/upgrade/platform.sh b/target/linux/octeon/base-files/lib/upgrade/platform.sh
index 149c2fd955..2de0f7a47e 100755
--- a/target/linux/octeon/base-files/lib/upgrade/platform.sh
+++ b/target/linux/octeon/base-files/lib/upgrade/platform.sh
@@ -85,8 +85,8 @@ platform_check_image() {
er | \
erlite)
local tar_file="$1"
- local kernel_length=$((tar xf $tar_file sysupgrade-$board/kernel -O | wc -c) 2> /dev/null)
- local rootfs_length=$((tar xf $tar_file sysupgrade-$board/root -O | wc -c) 2> /dev/null)
+ local kernel_length=$(tar xf $tar_file sysupgrade-$board/kernel -O | wc -c 2> /dev/null)
+ local rootfs_length=$(tar xf $tar_file sysupgrade-$board/root -O | wc -c 2> /dev/null)
[ "$kernel_length" = 0 -o "$rootfs_length" = 0 ] && {
echo "The upgrade image is corrupt."
return 1