Sungbo Eo
f432353850
bcm4908: fix calculation of new cferam index
The arithmetic expansion fails when idx becomes a two digit number.
Fix this by relying on expr command.
root@OpenWrt:/# echo $(((028 + 0) % 1000))
/bin/ash: arithmetic syntax error
root@OpenWrt:/# echo $(($(expr 028 + 0) % 1000))
28
Fixes: a6a0b252baa6 ("bcm4908: add sysupgrade support")
Signed-off-by: Sungbo Eo <mans0n@gorani.run>
2021-11-04 15:52:03 +01:00
..
2021-09-23 21:37:19 -10:00
2021-11-04 15:52:03 +01:00
2021-05-08 12:14:04 +02:00
2021-10-21 08:25:38 -10:00
2021-08-16 12:22:17 +01:00