diff options
Diffstat (limited to 'target/linux/ar71xx/base-files/lib/ar71xx.sh')
-rwxr-xr-x | target/linux/ar71xx/base-files/lib/ar71xx.sh | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh index 1554a51e95..e7fbfbe58a 100755 --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -280,7 +280,16 @@ ar71xx_board_detect() { name="jwap003" ;; *"Hornet-UB") - name="hornet-ub" + local size + size=$(awk '/firmware/ { print $2 }' /proc/mtd) + + if [ "x$size" = "x00790000" ]; then + name="hornet-ub" + fi + + if [ "x$size" = "x00f90000" ]; then + name="hornet-ub-x2" + fi ;; *LS-SR71) name="ls-sr71" |