diff --git a/files/usr/local/bin/get_boardid b/files/usr/local/bin/get_boardid index 5adc4e91..9c8d9fbd 100755 --- a/files/usr/local/bin/get_boardid +++ b/files/usr/local/bin/get_boardid @@ -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}"