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>
}
[ -f "/etc/board.json" ] || return 1
-
-/bin/config_generate
. /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() {
}
rm -f /tmp/wireless.tmp
- /bin/board_detect
+ /bin/config_generate
uci_apply_defaults
# temporary hack until configd exists