X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fopenwrt.git;a=blobdiff_plain;f=target%2Flinux%2Fbrcm47xx%2Fbase-files%2Fetc%2Fboard.d%2F01_detect;h=f1022dc13a744a258cfbb1e7634071f323c87715;hp=91ac16eed74f7df38a535c527c8d793ac34793a0;hb=e4e984f2a07d2cd96d8e5e90955bc268eb5d4e5a;hpb=54de773f2b37c5cd4d47f9f917844e4076c280ba 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 91ac16eed7..f1022dc13a 100755 --- a/target/linux/brcm47xx/base-files/etc/board.d/01_detect +++ b/target/linux/brcm47xx/base-files/etc/board.d/01_detect @@ -124,7 +124,7 @@ detect_by_model() { # Netgear WGT634U exception if grep -sqE 'mtd0: 000(6|a)0000' /proc/mtd; then ucidef_add_switch "switch0" \ - "0:wan" "1:lan" "2:lan" "3:lan" "4:lan" "5@eth0" + "0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "5@eth0" return fi @@ -175,9 +175,9 @@ detect_by_model() { } -local model="$(sed -ne 's/^machine[ \t]*: //p' /proc/cpuinfo)" -local boardtype="$(nvram get boardtype)" -local boardnum="$(nvram get boardnum)" +model="$(board_name)" +boardtype="$(nvram get boardtype)" +boardnum="$(nvram get boardnum)" board_config_update