base-files: Fix config_generate when there are no switch VLANs or ports configured...
authorVittorio Gambaletta (VittGam) <openwrt@vittgam.net>
Fri, 6 May 2016 03:23:43 +0000 (05:23 +0200)
committerJo-Philipp Wich <jo@mein.io>
Wed, 11 May 2016 15:06:54 +0000 (17:06 +0200)
commit40f933d7ffd2256ea44e3fa5a3202a0437426438
treec63e743bbc68bf1b266a9f0e0eb646b16e134f9b
parenta3531f1986d33eeff12175c804ebf7f62a9a8675
base-files: Fix config_generate when there are no switch VLANs or ports configured in board.json.

The json_select call fails when there are no roles or ports objects in board.json. "json_select .." must not be executed after failing.

This fixes for example LEDs not being set up in /etc/config/system.

Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>
package/base-files/files/bin/config_generate