mirror of https://github.com/aredn/aredn.git
hardware: Add support to obtain boardid from more Ubiquiti devices.
Obtain the board ID from the EEPROM on *-m-xw devices. ref AREDN->ticket:185 ref AREDN->ticket:43 Change-Id: I86247640773a1f6cbd3c4792502d7da4890a46a4
This commit is contained in:
parent
1b65f8a3ad
commit
717b39c2fd
|
@ -8,7 +8,7 @@ if [ ! -f /tmp/sysinfo/boardid ]; then
|
||||||
ar71xx_board_detect
|
ar71xx_board_detect
|
||||||
|
|
||||||
case $AR71XX_MODEL in
|
case $AR71XX_MODEL in
|
||||||
loco-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}"
|
||||||
;;
|
;;
|
||||||
|
|
|
@ -1321,7 +1321,7 @@ sub hardware_info
|
||||||
'usechains' => 1,
|
'usechains' => 1,
|
||||||
'rfband' => '5800ubntus',
|
'rfband' => '5800ubntus',
|
||||||
},
|
},
|
||||||
'Ubiquiti Nanostation M XW' => {
|
'0xe855' => {
|
||||||
'name' => 'NanoStation M5 XW',
|
'name' => 'NanoStation M5 XW',
|
||||||
'comment' => 'NanoStation M5 XW',
|
'comment' => 'NanoStation M5 XW',
|
||||||
'supported' => '1',
|
'supported' => '1',
|
||||||
|
@ -1348,7 +1348,7 @@ sub hardware_info
|
||||||
'usechains' => 1,
|
'usechains' => 1,
|
||||||
'rfband' => '5800ubntus',
|
'rfband' => '5800ubntus',
|
||||||
},
|
},
|
||||||
'Ubiquiti Rocket M XW' => {
|
'0xe6b5' => {
|
||||||
'name' => 'Rocket M5 XW',
|
'name' => 'Rocket M5 XW',
|
||||||
'comment' => 'Rocket M5 XW 0xe6b5 (in testing)',
|
'comment' => 'Rocket M5 XW 0xe6b5 (in testing)',
|
||||||
'supported' => '-2',
|
'supported' => '-2',
|
||||||
|
|
Loading…
Reference in New Issue