mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2024-12-15 19:34:49 +00:00
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 75bfc393ba
("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>
This commit is contained in:
parent
62dbe361a1
commit
4c060228cb
@ -40,7 +40,7 @@ mtd_get_mac_ascii() {
|
|||||||
|
|
||||||
mtd_get_mac_text() {
|
mtd_get_mac_text() {
|
||||||
local mtdname=$1
|
local mtdname=$1
|
||||||
local offset=$2
|
local offset=$(($2))
|
||||||
local part
|
local part
|
||||||
local mac_dirty
|
local mac_dirty
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user