Browse Source

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 <[email protected]>
Luis Araneda 8 years ago
parent
commit
09e13bd341
1 changed files with 1 additions and 0 deletions
  1. 1 0
      target/linux/ipq806x/base-files/etc/board.d/01_leds

+ 1 - 0
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)