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_leds5
-rwxr-xr-xtarget/linux/ramips/base-files/etc/board.d/02_network1
-rw-r--r--target/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, 13 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 ad0062a56b..c63ff47585 100755
--- a/target/linux/ramips/base-files/etc/board.d/01_leds
+++ b/target/linux/ramips/base-files/etc/board.d/01_leds
@@ -175,6 +175,11 @@ case $board in
set_wifi_led "7links:orange:wifi"
set_usb_led "7links:blue:storage"
;;
+ pbr-m1)
+ ucidef_set_led_netdev "internet" "internet" "pbr-m1:green:internet" "eth0.2"
+ ucidef_set_led_default "power" "power" "pbr-m1:green:power" "1"
+ ucidef_set_led_default "sys" "sys" "pbr-m1:green:sys" "1"
+ ;;
sl-r7205)
set_wifi_led "rt2800pci-phy0::radio"
;;
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 4982566de7..b3dd1f1c3d 100755
--- a/target/linux/ramips/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/base-files/etc/board.d/02_network
@@ -129,6 +129,7 @@ ramips_setup_interfaces()
dir-320-b1 | \
dir-615-h1 | \
firewrt | \
+ pbr-m1 | \
hlk-rm04 | \
mt7621 | \
mt7628 | \
diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh
index d6001c5d5b..bfc92e5e4e 100644
--- a/target/linux/ramips/base-files/etc/diag.sh
+++ b/target/linux/ramips/base-files/etc/diag.sh
@@ -117,6 +117,9 @@ get_status_led() {
omni-emb-hpm)
status_led="emb:green:status"
;;
+ pbr-m1)
+ status_led="pbr-m1:green:sys"
+ ;;
psr-680w)
status_led="psr-680w:red:wan"
;;
diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh
index 0cb02c7ec3..14ffc212d2 100755
--- a/target/linux/ramips/base-files/lib/ramips.sh
+++ b/target/linux/ramips/base-files/lib/ramips.sh
@@ -247,6 +247,9 @@ ramips_board_detect() {
*"OLinuXino-RT5350F-EVB")
name="olinuxino-rt5350f-evb"
;;
+ *"PBR-M1")
+ name="pbr-m1"
+ ;;
*"Petatel PSR-680W"*)
name="psr-680w"
;;
diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh
index 99cabbde00..8d5f74ff09 100755
--- a/target/linux/ramips/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh
@@ -53,6 +53,7 @@ platform_check_image() {
fonera20n | \
freestation5 | \
firewrt |\
+ pbr-m1 |\
hg255d | \
hlk-rm04 | \
ht-tm02 | \