aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files/lib/ramips.sh
diff options
context:
space:
mode:
authorMathias Kresin <dev@kresin.me>2017-04-08 00:34:48 +0200
committerMathias Kresin <dev@kresin.me>2017-04-21 07:47:59 +0200
commit18618695aedf8cf593ca5bb5a5a0b4c97e53dd2f (patch)
tree1c7c7866c12811fa125c5a6b159bf95c246a450b /target/linux/ramips/base-files/lib/ramips.sh
parent9e468f7829eb6bfeff2a3671b04e53003a709313 (diff)
downloadupstream-18618695aedf8cf593ca5bb5a5a0b4c97e53dd2f.tar.gz
upstream-18618695aedf8cf593ca5bb5a5a0b4c97e53dd2f.tar.bz2
upstream-18618695aedf8cf593ca5bb5a5a0b4c97e53dd2f.zip
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 <dev@kresin.me>
Diffstat (limited to 'target/linux/ramips/base-files/lib/ramips.sh')
-rwxr-xr-xtarget/linux/ramips/base-files/lib/ramips.sh2
1 files changed, 1 insertions, 1 deletions
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}"
}