Author: blogic
Date: 2014-07-10 21:16:43 +0200 (Thu, 10 Jul 2014)
New Revision: 41567

Modified:
   trunk/target/linux/lantiq/base-files/lib/functions/lantiq.sh
Log:
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 <[email protected]>

Modified: trunk/target/linux/lantiq/base-files/lib/functions/lantiq.sh
===================================================================
--- trunk/target/linux/lantiq/base-files/lib/functions/lantiq.sh        
2014-07-10 19:16:39 UTC (rev 41566)
+++ trunk/target/linux/lantiq/base-files/lib/functions/lantiq.sh        
2014-07-10 19:16:43 UTC (rev 41567)
@@ -13,6 +13,7 @@
 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_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-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to