diff options
author | David Bauer <mail@david-bauer.net> | 2019-09-04 20:46:10 +0200 |
---|---|---|
committer | David Bauer <mail@david-bauer.net> | 2019-09-05 20:31:56 +0200 |
commit | 4c060228cb7756bada6ded3fe9d23a48b9a797ee (patch) | |
tree | 63f3d7ed7c9754b32b5a9c557135eaf0a95fe1a9 /package/base-files/files | |
parent | 62dbe361a1b1ed1506bc0387bff55eddcb619e49 (diff) | |
download | upstream-4c060228cb7756bada6ded3fe9d23a48b9a797ee.tar.gz upstream-4c060228cb7756bada6ded3fe9d23a48b9a797ee.tar.bz2 upstream-4c060228cb7756bada6ded3fe9d23a48b9a797ee.zip |
base-files: fix mtd_get_mac_text not accepting hex offsets
The mtd_get_mac_text helper method did not support hexadecimal offset
values, resulting them to break after 75bfc393ba6c ("treewide:
convert MAC address location offsets to hexadecimal")
This commit fixes this by evaluating the hexadecimal input,
converting them to decimal.
Signed-off-by: David Bauer <mail@david-bauer.net>
Diffstat (limited to 'package/base-files/files')
-rw-r--r-- | package/base-files/files/lib/functions/system.sh | 2 |
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 9b9d03df7b..2a43d18d33 100644 --- a/package/base-files/files/lib/functions/system.sh +++ b/package/base-files/files/lib/functions/system.sh @@ -40,7 +40,7 @@ mtd_get_mac_ascii() { mtd_get_mac_text() { local mtdname=$1 - local offset=$2 + local offset=$(($2)) local part local mac_dirty |