ipq806x: add a helper variable with the vendor name stripped
authorLuis Araneda <luaraneda@gmail.com>
Thu, 28 Dec 2017 02:38:50 +0000 (23:38 -0300)
committerMathias Kresin <dev@kresin.me>
Sat, 13 Jan 2018 06:33:02 +0000 (07:33 +0100)
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>
target/linux/ipq806x/base-files/etc/board.d/01_leds

index 5e04ee773a95368e71ee2738e58f93c41019eb52..f9ec88bb34bf54bd1b87d2cc0dc5613f9badc618 100755 (executable)
@@ -8,6 +8,7 @@
 board_config_update
 
 board=$(board_name)
+boardname="${board##*,}"
 
 case "$board" in
 c2600)