bugfix: Add support to obtain boardid from more Ubiquiti devices

Change-Id: I60ad4d23339c4aaf59b429c49fa705dbbe49ba8e
This commit is contained in:
AE6XE 2016-09-30 20:41:33 -07:00
parent 9ec5e2132d
commit b2edc2472b
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ if [ ! -f /tmp/sysinfo/boardid ]; then
. /lib/ar71xx.sh . /lib/ar71xx.sh
ar71xx_board_detect ar71xx_board_detect
case $AR71XX_MODEL in case $AR71XX_BOARD_NAME in
*-m-xw) *-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=$(dd if=/dev/mtd7 bs=1 skip=12 count=2 2>/dev/null | hexdump -v -n 4 -e '1/1 "%02x"')
BOARDID="0x${BOARDID}" BOARDID="0x${BOARDID}"