From 18618695aedf8cf593ca5bb5a5a0b4c97e53dd2f Mon Sep 17 00:00:00 2001 From: Mathias Kresin Date: Sat, 8 Apr 2017 00:34:48 +0200 Subject: ramips: dont replace the board name Use fixed led names and add each board variant instead of manipulating the board name. It makes the ramips board name function less different to the one used in other targets and allows to merge them with a common function. Signed-off-by: Mathias Kresin --- target/linux/ramips/base-files/lib/ramips.sh | 2 +- .../ramips/base-files/lib/upgrade/platform.sh | 30 ++++++++++++++-------- 2 files changed, 21 insertions(+), 11 deletions(-) (limited to 'target/linux/ramips/base-files/lib') diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh index 7630166b89..eec961284a 100755 --- a/target/linux/ramips/base-files/lib/ramips.sh +++ b/target/linux/ramips/base-files/lib/ramips.sh @@ -696,5 +696,5 @@ ramips_board_name() { [ -f /tmp/sysinfo/board_name ] && name=$(cat /tmp/sysinfo/board_name) [ -z "$name" ] && name="unknown" - echo "${name%-[0-9]*M}" + echo "${name}" } diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh index d0dd28e73f..036e19afe3 100755 --- a/target/linux/ramips/base-files/lib/upgrade/platform.sh +++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh @@ -21,13 +21,16 @@ platform_check_image() { ai-br100|\ air3gii|\ all0239-3g|\ - all0256n|\ + all0256n-4M|\ + all0256n-8M|\ all5002|\ all5003|\ ar725w|\ - asl26555|\ + asl26555-8M|\ + asl26555-16M|\ awapn2403|\ - awm002-evb|\ + awm002-evb-4M|\ + awm002-evb-8M|\ awm003-evb|\ bc2|\ broadway|\ @@ -81,7 +84,8 @@ platform_check_image() { linkits7688d|\ m2m|\ m3|\ - m4|\ + m4-4M|\ + m4-8M|\ mac1200rv2|\ microwrt|\ miniembplug|\ @@ -104,7 +108,8 @@ platform_check_image() { nbg-419n|\ nbg-419n2|\ newifi-d1|\ - nixcore|\ + nixcore-x1-8M|\ + nixcore-x1-16M|\ nw718|\ omega2|\ omega2p|\ @@ -115,7 +120,8 @@ platform_check_image() { psg1218a|\ psg1218b|\ psr-680w|\ - px-4885|\ + px-4885-4M|\ + px-4885-8M|\ rb750gr3|\ re6500|\ rp-n53|\ @@ -139,7 +145,8 @@ platform_check_image() { ur-326n4g|\ ur-336un|\ v22rw-2x2|\ - vocore|\ + vocore-8M|\ + vocore-16M|\ vocore2|\ vr500|\ w150m|\ @@ -165,15 +172,18 @@ platform_check_image() { wn3000rpv3|\ wnce2001|\ wndr3700v5|\ - wr512-3gn|\ + wr512-3gn-4M|\ + wr512-3gn-8M|\ wr6202|\ wrh-300cr|\ wrtnode|\ wrtnode2r |\ wrtnode2p |\ wsr-600|\ - wt1520|\ - wt3020|\ + wt1520-4M|\ + wt1520-8M|\ + wt3020-4M|\ + wt3020-8M|\ wzr-agl300nh|\ x5|\ x8|\ -- cgit v1.2.3