From: Rosen Penev Date: Fri, 17 Jan 2020 04:43:59 +0000 (-0800) Subject: base-files/system.sh: remove $ in $(()) X-Git-Tag: v21.02.0-rc1~4009 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=d4009d7985500b0f4ec26dee9b91bdeb3ea16da5;p=openwrt%2Fstaging%2Fchunkeey.git base-files/system.sh: remove $ in $(()) Not needed. https://github.com/koalaman/shellcheck/wiki/Sc2004 Signed-off-by: Rosen Penev --- diff --git a/package/base-files/files/lib/functions/system.sh b/package/base-files/files/lib/functions/system.sh index c4dc3cc3a9..c9f8eb0c31 100644 --- a/package/base-files/files/lib/functions/system.sh +++ b/package/base-files/files/lib/functions/system.sh @@ -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 }