aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/lib
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2020-01-16 20:43:59 -0800
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-01-17 12:17:36 +0100
commitd4009d7985500b0f4ec26dee9b91bdeb3ea16da5 (patch)
treec1569bc58357c2a27903e0e4e147ea5eef993bb6 /package/base-files/files/lib
parentfb56573dc4a5dda48953916b533a26af68b16f11 (diff)
downloadupstream-d4009d7985500b0f4ec26dee9b91bdeb3ea16da5.tar.gz
upstream-d4009d7985500b0f4ec26dee9b91bdeb3ea16da5.tar.bz2
upstream-d4009d7985500b0f4ec26dee9b91bdeb3ea16da5.zip
base-files/system.sh: remove $ in $(())
Not needed. https://github.com/koalaman/shellcheck/wiki/Sc2004 Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'package/base-files/files/lib')
-rw-r--r--package/base-files/files/lib/functions/system.sh2
1 files changed, 1 insertions, 1 deletions
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
}