2
0
forked from Ivasoft/openwrt

base-files: let config_generate call board_detect

Instead of board_detect generating the config as a side effect, let
config_generate call board_detect as needed.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
This commit is contained in:
Jonas Gorski
2016-08-13 14:04:23 +02:00
parent 0ddae04c22
commit e934a129f0
3 changed files with 2 additions and 4 deletions

View File

@@ -4,7 +4,7 @@ CFG=/etc/board.json
. /usr/share/libubox/jshn.sh
[ -f $CFG ] || exit 1
[ -f $CFG ] || /bin/board_detect || exit 1
[ -f /etc/config/network -a -f /etc/config/system ] && exit 0
generate_static_network() {