aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/lantiq/base-files
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2014-07-10 19:16:43 +0000
committerJohn Crispin <john@openwrt.org>2014-07-10 19:16:43 +0000
commit332b4d556f2240ee96aa21458fe6c105755f13cd (patch)
treed48f6025b281c1fe49ab163972a887ee5291763d /target/linux/lantiq/base-files
parent03fef9a2d23b6ea9f28130fb9909e8e771d847c0 (diff)
downloadupstream-332b4d556f2240ee96aa21458fe6c105755f13cd.tar.gz
upstream-332b4d556f2240ee96aa21458fe6c105755f13cd.tar.bz2
upstream-332b4d556f2240ee96aa21458fe6c105755f13cd.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> SVN-Revision: 41567
Diffstat (limited to 'target/linux/lantiq/base-files')
-rw-r--r--target/linux/lantiq/base-files/lib/functions/lantiq.sh2
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"