aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/bcm4908/base-files/lib/upgrade/platform.sh
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/bcm4908/base-files/lib/upgrade/platform.sh')
-rw-r--r--target/linux/bcm4908/base-files/lib/upgrade/platform.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/bcm4908/base-files/lib/upgrade/platform.sh b/target/linux/bcm4908/base-files/lib/upgrade/platform.sh
index 8aca7119e4..ee43e3a713 100644
--- a/target/linux/bcm4908/base-files/lib/upgrade/platform.sh
+++ b/target/linux/bcm4908/base-files/lib/upgrade/platform.sh
@@ -1,6 +1,6 @@
# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause
-RAMFS_COPY_BIN="bcm4908img"
+RAMFS_COPY_BIN="bcm4908img expr"
PART_NAME=firmware
@@ -129,7 +129,7 @@ platform_calc_new_cferam() {
umount $dir
rm -fr $dir
- idx=$(((idx + inc) % 1000))
+ idx=$(($(expr $idx + $inc) % 1000))
echo $(printf "cferam.%03d" $idx)
}