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>
master
Jonas Gorski 8 years ago
parent 0ddae04c22
commit e934a129f0
  1. 2
      package/base-files/files/bin/board_detect
  2. 2
      package/base-files/files/bin/config_generate
  3. 2
      package/base-files/files/etc/init.d/boot

@ -8,5 +8,3 @@
}
[ -f "/etc/board.json" ] || return 1
/bin/config_generate

@ -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() {

@ -47,7 +47,7 @@ boot() {
}
rm -f /tmp/wireless.tmp
/bin/board_detect
/bin/config_generate
uci_apply_defaults
# temporary hack until configd exists

Loading…
Cancel
Save