[openwrt/openwrt] ipq806x: add a helper variable with the vendor name stripped
LEDE Commits
lede-commits at lists.infradead.org
Fri Jan 12 22:56:14 PST 2018
mkresin pushed a commit to openwrt/openwrt.git, branch master:
https://git.lede-project.org/09e13bd341da40af41e0dede8f4dcbf5ea87aefb
commit 09e13bd341da40af41e0dede8f4dcbf5ea87aefb
Author: Luis Araneda <luaraneda at gmail.com>
AuthorDate: Wed Dec 27 23:38:50 2017 -0300
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 at gmail.com>
---
target/linux/ipq806x/base-files/etc/board.d/01_leds | 1 +
1 file changed, 1 insertion(+)
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)
More information about the lede-commits
mailing list