From: Luis Araneda Date: Thu, 28 Dec 2017 02:38:50 +0000 (-0300) Subject: ipq806x: add a helper variable with the vendor name stripped X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=09e13bd341da40af41e0dede8f4dcbf5ea87aefb;p=openwrt%2Fstaging%2Fldir.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 --- 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)