diff options
author | John Crispin <blogic@openwrt.org> | 2014-07-10 19:16:43 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2014-07-10 19:16:43 +0000 |
commit | e87aa5f56809e5becf9da7aca5098a87caeccb2e (patch) | |
tree | a13baa51589ca6776f908b6a437e58581bb85068 /target/linux/lantiq/base-files/lib | |
parent | 406e661fa4f79e6a30992f5fe4231bd8aad9fb9d (diff) | |
download | upstream-e87aa5f56809e5becf9da7aca5098a87caeccb2e.tar.gz upstream-e87aa5f56809e5becf9da7aca5098a87caeccb2e.tar.bz2 upstream-e87aa5f56809e5becf9da7aca5098a87caeccb2e.zip |
lantiq: generate /tmp/sysinfo/lantiq_board_name if missing
Run lantiq_board_detect from lantiq_board_name and lantiq_board_model.
This was the one thing missing from r41474 for sysupgrade board
detection to work properly.
Signed-off-by: Ben Mulvihill <ben.mulvihill@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41567 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/lantiq/base-files/lib')
-rw-r--r-- | target/linux/lantiq/base-files/lib/functions/lantiq.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/target/linux/lantiq/base-files/lib/functions/lantiq.sh b/target/linux/lantiq/base-files/lib/functions/lantiq.sh index 88da794ca9..f02edbcbb1 100644 --- a/target/linux/lantiq/base-files/lib/functions/lantiq.sh +++ b/target/linux/lantiq/base-files/lib/functions/lantiq.sh @@ -13,6 +13,7 @@ lantiq_board_detect() { lantiq_board_model() { local model + [ -f /tmp/sysinfo/model ] || lantiq_board_detect [ -f /tmp/sysinfo/model ] && model=$(cat /tmp/sysinfo/model) [ -z "$model" ] && model="unknown" @@ -22,6 +23,7 @@ lantiq_board_model() { lantiq_board_name() { local name + [ -f /tmp/sysinfo/board_name ] || lantiq_board_detect [ -f /tmp/sysinfo/board_name ] && name=$(cat /tmp/sysinfo/board_name) [ -z "$name" ] && name="unknown" |