mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
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
This commit is contained in:
parent
406e661fa4
commit
e87aa5f568
@ -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"
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user