[OpenWrt-Devel] [PATCH] lantiq: generate /tmp/sysinfo/lantiq_board_name if missing

Ben Mulvihill ben.mulvihill at gmail.com
Fri Jul 4 08:49:22 EDT 2014


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. 

Sysupgrade on the BTHOMEHUBV2B falls down later on in the process
I'm afraid, but I still have to investigate why.

Ben

Signed-off-by: Ben Mulvihill <ben.mulvihill at gmail.com>
---

--- a/target/linux/lantiq/base-files/lib/functions/lantiq.sh	2014-07-04 14:21:28.777178976 +0200
+++ b/target/linux/lantiq/base-files/lib/functions/lantiq.sh	2014-07-04 14:17:23.451467131 +0200
@@ -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"
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list