diff options
author | Jonas Gorski <jonas.gorski@gmail.com> | 2016-08-13 14:04:23 +0200 |
---|---|---|
committer | Jonas Gorski <jonas.gorski@gmail.com> | 2016-08-13 15:49:46 +0200 |
commit | e934a129f086435a39c663375d41367a54783b39 (patch) | |
tree | 1e04f8cd56a9ebc0ee7948a723277eb10c9d1954 /package/base-files/files/bin | |
parent | 0ddae04c226983e1e064d8750b8bb8724f077ad9 (diff) | |
download | upstream-e934a129f086435a39c663375d41367a54783b39.tar.gz upstream-e934a129f086435a39c663375d41367a54783b39.tar.bz2 upstream-e934a129f086435a39c663375d41367a54783b39.zip |
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>
Diffstat (limited to 'package/base-files/files/bin')
-rwxr-xr-x | package/base-files/files/bin/board_detect | 2 | ||||
-rwxr-xr-x | package/base-files/files/bin/config_generate | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/package/base-files/files/bin/board_detect b/package/base-files/files/bin/board_detect index beb7f4e659..3a23381c2c 100755 --- a/package/base-files/files/bin/board_detect +++ b/package/base-files/files/bin/board_detect @@ -8,5 +8,3 @@ } [ -f "/etc/board.json" ] || return 1 - -/bin/config_generate diff --git a/package/base-files/files/bin/config_generate b/package/base-files/files/bin/config_generate index 7f34eec881..80ed61b9e2 100755 --- a/package/base-files/files/bin/config_generate +++ b/package/base-files/files/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() { |