base-files: fix mtd_get_mac_text not accepting hex offsets
authorDavid Bauer <mail@david-bauer.net>
Wed, 4 Sep 2019 18:46:10 +0000 (20:46 +0200)
committerDavid Bauer <mail@david-bauer.net>
Thu, 5 Sep 2019 18:31:56 +0000 (20:31 +0200)
commit4c060228cb7756bada6ded3fe9d23a48b9a797ee
tree63f3d7ed7c9754b32b5a9c557135eaf0a95fe1a9
parent62dbe361a1b1ed1506bc0387bff55eddcb619e49
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>
package/base-files/files/lib/functions/system.sh