projects
/
openwrt
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ramips: add Xiaomi Mi Router 3G support
[openwrt/openwrt.git]
/
target
/
linux
/
ramips
/
base-files
/
lib
/
ramips.sh
diff --git
a/target/linux/ramips/base-files/lib/ramips.sh
b/target/linux/ramips/base-files/lib/ramips.sh
index e146d1c4767d79711abd127d13c24e78055d3167..fe66a87c2e3c8ec550ab10ba002c7c675b79efb8 100755
(executable)
--- a/
target/linux/ramips/base-files/lib/ramips.sh
+++ b/
target/linux/ramips/base-files/lib/ramips.sh
@@
-76,15
+76,9
@@
ramips_board_detect() {
*"AWM002 EVB (8M)")
name="awm002-evb-8M"
;;
*"AWM002 EVB (8M)")
name="awm002-evb-8M"
;;
- *"AWM003 EVB")
- name="awm003-evb"
- ;;
*"BC2")
name="bc2"
;;
*"BC2")
name="bc2"
;;
- *"BR-6425")
- name="br-6425"
- ;;
*"BR-6475nD")
name="br-6475nd"
;;
*"BR-6475nD")
name="br-6475nd"
;;
@@
-187,7
+181,7
@@
ramips_board_detect() {
*"EX2700")
name="ex2700";
;;
*"EX2700")
name="ex2700";
;;
- *"EX3700")
+ *"EX3700
/EX3800
")
name="ex3700"
;;
*"F5D8235 v1")
name="ex3700"
;;
*"F5D8235 v1")
@@
-208,6
+202,9
@@
ramips_board_detect() {
*"FreeStation5")
name="freestation5"
;;
*"FreeStation5")
name="freestation5"
;;
+ *"GB-PC1")
+ name="gb-pc1"
+ ;;
*"GL-MT300A")
name="gl-mt300a"
;;
*"GL-MT300A")
name="gl-mt300a"
;;
@@
-262,6
+259,9
@@
ramips_board_detect() {
*"JHR-N926R")
name="jhr-n926r"
;;
*"JHR-N926R")
name="jhr-n926r"
;;
+ *"K2P")
+ name="k2p"
+ ;;
*"M3")
name="m3"
;;
*"M3")
name="m3"
;;
@@
-284,7
+284,10
@@
ramips_board_detect() {
name="m2m"
;;
*"Mercury MAC1200R v2")
name="m2m"
;;
*"Mercury MAC1200R v2")
- name="mac1200r-v2"
+ name="mac1200rv2"
+ ;;
+ *"Mi Router 3G")
+ name="mir3g"
;;
*"MicroWRT")
name="microwrt"
;;
*"MicroWRT")
name="microwrt"
@@
-424,6
+427,9
@@
ramips_board_detect() {
*"RB750Gr3")
name="rb750gr3"
;;
*"RB750Gr3")
name="rb750gr3"
;;
+ *"RE350 v1")
+ name="re350-v1"
+ ;;
*"RE6500")
name="re6500"
;;
*"RE6500")
name="re6500"
;;
@@
-487,6
+493,12
@@
ramips_board_detect() {
*"Timecloud")
name="timecloud"
;;
*"Timecloud")
name="timecloud"
;;
+ *"TL-WR840N v4")
+ name="tl-wr840n-v4"
+ ;;
+ *"TL-WR841N v13")
+ name="tl-wr841n-v13"
+ ;;
*"UBNT-ERX")
name="ubnt-erx"
;;
*"UBNT-ERX")
name="ubnt-erx"
;;
@@
-514,6
+526,9
@@
ramips_board_detect() {
*"VoCore2")
name="vocore2"
;;
*"VoCore2")
name="vocore2"
;;
+ *"VoCore2-Lite")
+ name="vocore2lite"
+ ;;
*"VR500")
name="vr500"
;;
*"VR500")
name="vr500"
;;
@@
-583,6
+598,9
@@
ramips_board_detect() {
*"WLR-6000")
name="wlr-6000"
;;
*"WLR-6000")
name="wlr-6000"
;;
+ *"WMDR-143N")
+ name="wmdr-143n"
+ ;;
*"WMR-300")
name="wmr-300"
;;
*"WMR-300")
name="wmr-300"
;;
@@
-710,12
+728,3
@@
ramips_board_detect() {
echo "$RAMIPS_BOARD_NAME" > /tmp/sysinfo/board_name
echo "$RAMIPS_MODEL" > /tmp/sysinfo/model
}
echo "$RAMIPS_BOARD_NAME" > /tmp/sysinfo/board_name
echo "$RAMIPS_MODEL" > /tmp/sysinfo/model
}
-
-ramips_board_name() {
- local name
-
- [ -f /tmp/sysinfo/board_name ] && name=$(cat /tmp/sysinfo/board_name)
- [ -z "$name" ] && name="unknown"
-
- echo "${name}"
-}