mirror of https://github.com/aredn/aredn.git
bugfix: Add support to obtain boardid from more Ubiquiti devices
Change-Id: I60ad4d23339c4aaf59b429c49fa705dbbe49ba8e
This commit is contained in:
parent
9ec5e2132d
commit
b2edc2472b
|
@ -7,7 +7,7 @@ if [ ! -f /tmp/sysinfo/boardid ]; then
|
|||
. /lib/ar71xx.sh
|
||||
ar71xx_board_detect
|
||||
|
||||
case $AR71XX_MODEL in
|
||||
case $AR71XX_BOARD_NAME in
|
||||
*-m-xw)
|
||||
BOARDID=$(dd if=/dev/mtd7 bs=1 skip=12 count=2 2>/dev/null | hexdump -v -n 4 -e '1/1 "%02x"')
|
||||
BOARDID="0x${BOARDID}"
|
||||
|
|
Loading…
Reference in New Issue