Sungbo Eo
4607f55439
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>
(cherry picked from commit f4323538501d58298f4df73a034a51375a477cfc)
2021-11-05 14:13:46 +01:00
..
2021-10-02 16:05:34 +02:00
2021-05-26 23:36:40 +02:00
2021-09-13 18:49:15 +02:00
2021-04-11 16:54:22 +02:00
2021-06-08 22:50:32 +02:00
2021-07-19 22:47:17 +02:00
2021-10-22 16:34:11 -10:00
2021-10-02 16:05:34 +02:00
2021-03-17 23:38:46 +01:00
2021-10-02 16:05:34 +02:00
2021-07-19 22:47:17 +02:00
2021-11-05 14:13:46 +01:00
2021-10-02 16:05:34 +02:00
2021-10-20 00:37:51 +02:00
2021-04-11 16:54:22 +02:00
2021-10-24 11:01:35 +02:00
2021-06-27 00:58:50 +02:00
2021-09-13 15:24:35 +02:00
2021-07-02 19:22:13 +02:00
2021-10-22 22:26:02 +02:00
2021-02-10 15:47:18 +01:00
2021-10-02 16:05:34 +02:00
2021-07-13 22:19:23 +02:00
2021-10-14 13:09:57 +01:00
2021-02-10 15:47:23 +01:00
2021-04-11 16:54:22 +02:00
2021-10-02 16:05:34 +02:00
2021-04-11 16:54:22 +02:00
2021-10-20 00:37:51 +02:00
2021-03-17 21:24:22 +01:00
2021-11-01 15:35:25 +01:00
2021-06-22 23:52:09 +02:00
2021-09-24 12:29:22 +02:00
2021-04-11 00:00:49 +02:00
2021-04-11 16:54:22 +02:00
2021-02-10 15:47:18 +01:00
2021-10-02 16:05:34 +02:00
2021-04-11 16:54:22 +02:00
2021-02-10 15:47:18 +01:00