From: Rosen Penev Date: Fri, 17 Jan 2020 04:43:59 +0000 (-0800) Subject: base-files/system.sh: remove $ in $(()) X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d4009d7985500b0f4ec26dee9b91bdeb3ea16da5;p=oweals%2Fopenwrt.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 }