base-files/system.sh: remove $ in $(())
authorRosen Penev <rosenp@gmail.com>
Fri, 17 Jan 2020 04:43:59 +0000 (20:43 -0800)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Fri, 17 Jan 2020 11:17:36 +0000 (12:17 +0100)
Not needed.

https://github.com/koalaman/shellcheck/wiki/Sc2004

Signed-off-by: Rosen Penev <rosenp@gmail.com>
package/base-files/files/lib/functions/system.sh

index c4dc3cc3a9bdd3a9174c400d5b2d5e113de4928c..c9f8eb0c31467c569563873dbcbb61103f9ea5ff 100644 (file)
@@ -140,7 +140,7 @@ macaddr_add() {
        local oui=${mac%:*:*:*}
        local nic=${mac#*:*:*:}
 
-       nic=$(printf "%06x" $((0x${nic//:/} + $val & 0xffffff)) | sed 's/^\(.\{2\}\)\(.\{2\}\)\(.\{2\}\)/\1:\2:\3/')
+       nic=$(printf "%06x" $((0x${nic//:/} + val & 0xffffff)) | sed 's/^\(.\{2\}\)\(.\{2\}\)\(.\{2\}\)/\1:\2:\3/')
        echo $oui:$nic
 }