irqstats: fix iqrstats on Raspberry Pi (partial revert for 5190244c)

Raspberry Pi has line "FIQ:              usb_fiq" in /proc/interrupts.
"VALUE=$((VALUE + VAL))" results "Illegal number" in dash (Raspberry Pi)
"VALUE=$((VALUE + $VAL))" works in dash, bash and busybox (OpenWrt).
This commit is contained in:
Kim B. Heino 2020-10-09 14:51:31 +03:00
parent 0ae0f9cdcb
commit 4c53449fa3

View file

@ -29,7 +29,7 @@ fetch_irqstats() {
VALUE=0
for VAL in $VALS;
do
VALUE=$((VALUE + VAL))
VALUE=$((VALUE + $VAL))
done
echo "i$ID.value $VALUE"
done