X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Fbrcm47xx%2Fbase-files%2Fetc%2Fboard.d%2F01_detect;h=237314544b383e2131c340a1082c97e64d66a37b;hb=ca0c649a380c4bd1d356bf5518f4da47b2b163c1;hp=357cc7f22432d2803c464de1176197ea2c2182cf;hpb=1c09849f6cf1b8bd94819ca11910ce444c3d3019;p=openwrt%2Fopenwrt.git diff --git a/target/linux/brcm47xx/base-files/etc/board.d/01_detect b/target/linux/brcm47xx/base-files/etc/board.d/01_detect index 357cc7f224..237314544b 100755 --- a/target/linux/brcm47xx/base-files/etc/board.d/01_detect +++ b/target/linux/brcm47xx/base-files/etc/board.d/01_detect @@ -139,13 +139,14 @@ detect_by_model() { ;; "Asus WL500G" | \ - "Asus WL500W" | \ "Microsoft MN-700") ucidef_set_interfaces_lan_wan "eth0" "eth1" ;; + "Asus RT-N12"* | \ "Asus WL500GP V2" | \ "Buffalo WHR-G125" | \ + "D-Link DIR-330" | \ "Motorola WR850G" | \ "Siemens SE505 V2") ucidef_add_switch "switch0" \ @@ -157,12 +158,14 @@ detect_by_model() { "0:wan" "1:lan" "2:lan" "3:lan" "4:lan" "5@eth0" ;; + "Asus WL500W" | \ "Dell TrueMobile 2300") ucidef_set_interface_wan "eth1" ucidef_add_switch "switch0" \ "0:lan" "1:lan" "2:lan" "3:lan" "5@eth0" ;; + "Asus RT-N16"* | \ "Linksys E3000 V1") ucidef_add_switch "switch0" \ "0:wan" "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1" "8@eth0" @@ -175,7 +178,7 @@ detect_by_model() { } -model="$(sed -ne 's/^machine[ \t]*: //p' /proc/cpuinfo)" +model="$(board_name)" boardtype="$(nvram get boardtype)" boardnum="$(nvram get boardnum)"