summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuis Araneda <luaraneda@gmail.com>2017-12-27 23:38:50 -0300
committerMathias Kresin <dev@kresin.me>2018-01-13 07:33:02 +0100
commit09e13bd341da40af41e0dede8f4dcbf5ea87aefb (patch)
tree85a38abd8b0d694398f2ec200e8e75c16465397c
parent8ed5dfedc64bf539f07730d673e5d03134531137 (diff)
downloadmtk-20170518-09e13bd341da40af41e0dede8f4dcbf5ea87aefb.zip
mtk-20170518-09e13bd341da40af41e0dede8f4dcbf5ea87aefb.tar.gz
mtk-20170518-09e13bd341da40af41e0dede8f4dcbf5ea87aefb.tar.bz2
ipq806x: add a helper variable with the vendor name stripped
This will allow to maintain the current syntax for LEDs config when switching to a device tree compatible string boardname. None of the current boards use a comma in the boardname, so they will be unaffected. Signed-off-by: Luis Araneda <luaraneda@gmail.com>
-rwxr-xr-xtarget/linux/ipq806x/base-files/etc/board.d/01_leds1
1 files changed, 1 insertions, 0 deletions
diff --git a/target/linux/ipq806x/base-files/etc/board.d/01_leds b/target/linux/ipq806x/base-files/etc/board.d/01_leds
index 5e04ee7..f9ec88b 100755
--- a/target/linux/ipq806x/base-files/etc/board.d/01_leds
+++ b/target/linux/ipq806x/base-files/etc/board.d/01_leds
@@ -8,6 +8,7 @@
board_config_update
board=$(board_name)
+boardname="${board##*,}"
case "$board" in
c2600)