aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/ramips/base-files')
-rwxr-xr-xtarget/linux/ramips/base-files/etc/board.d/01_leds3
-rwxr-xr-xtarget/linux/ramips/base-files/etc/board.d/02_network1
-rwxr-xr-xtarget/linux/ramips/base-files/etc/diag.sh3
-rwxr-xr-xtarget/linux/ramips/base-files/lib/ramips.sh3
-rwxr-xr-xtarget/linux/ramips/base-files/lib/upgrade/platform.sh1
5 files changed, 11 insertions, 0 deletions
diff --git a/target/linux/ramips/base-files/etc/board.d/01_leds b/target/linux/ramips/base-files/etc/board.d/01_leds
index af3dddcc58..cfc782ed07 100755
--- a/target/linux/ramips/base-files/etc/board.d/01_leds
+++ b/target/linux/ramips/base-files/etc/board.d/01_leds
@@ -231,6 +231,9 @@ case $board in
wt3020)
ucidef_set_led_default "power" "power" "nexx:blue:power" "0"
;;
+ xiaomi-miwifi-mini)
+ ucidef_set_led_default "power" "power" "xiaomi:red:status" "1"
+ ;;
y1 |\
y1s)
ucidef_set_led_default "power" "power" "lenovo:blue:power" "1"
diff --git a/target/linux/ramips/base-files/etc/board.d/02_network b/target/linux/ramips/base-files/etc/board.d/02_network
index 7724c3e40a..f298aa47af 100755
--- a/target/linux/ramips/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/base-files/etc/board.d/02_network
@@ -130,6 +130,7 @@ ramips_setup_interfaces()
wsr-600 | \
wsr-1166 | \
wt1520 | \
+ xiaomi-miwifi-mini |\
y1)
ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
ucidef_add_switch "switch0" "1" "1"
diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh
index 808177bc0d..e9b39970ca 100755
--- a/target/linux/ramips/base-files/etc/diag.sh
+++ b/target/linux/ramips/base-files/etc/diag.sh
@@ -210,6 +210,9 @@ get_status_led() {
xdxrn502j)
status_led="xdxrn502j:green:power"
;;
+ xiaomi-mini)
+ status_led="xiaomi:red:status"
+ ;;
f7c027)
status_led="belkin:orange:status"
;;
diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh
index f43725ef9d..4527414e6e 100755
--- a/target/linux/ramips/base-files/lib/ramips.sh
+++ b/target/linux/ramips/base-files/lib/ramips.sh
@@ -367,6 +367,9 @@ ramips_board_detect() {
*"Wansview NCS601W")
name="ncs601w"
;;
+ *"Xiaomi MiWiFi Mini")
+ name="xiaomi-miwifi-mini"
+ ;;
*"Sercomm NA930")
name="na930"
;;
diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh
index 0dfdf9de86..356a0856c9 100755
--- a/target/linux/ramips/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh
@@ -110,6 +110,7 @@ platform_check_image() {
wt3020 |\
x5 |\
x8 |\
+ xiaomi-miwifi-mini |\
y1 |\
y1s |\
zbt-wa05)