From: Luis Araneda <luaraneda@gmail.com>
Date: Thu, 28 Dec 2017 02:38:50 +0000 (-0300)
Subject: ipq806x: add a helper variable with the vendor name stripped
X-Git-Tag: v18.06.0-rc1~1321
X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=09e13bd341da40af41e0dede8f4dcbf5ea87aefb;p=oweals%2Fopenwrt.git

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>
---

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 5e04ee773a..f9ec88bb34 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)