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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user