self-diagnostics: 1.0.12

- Fix saving model and serial number for report filename

Fixes: b0049df366 ("self-diagnostics: 1.0.10")
This commit is contained in:
Roman Azarenko 2025-02-03 09:49:34 +01:00 committed by Vivek Kumar Dutta
parent c0cfca286e
commit 81b5ade110
2 changed files with 3 additions and 3 deletions

View file

@ -1,7 +1,7 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=self-diagnostics PKG_NAME:=self-diagnostics
PKG_VERSION:=1.0.11 PKG_VERSION:=1.0.12
PKG_RELEASE:=1 PKG_RELEASE:=1
PKG_LICENSE:=GPL-2.0-only PKG_LICENSE:=GPL-2.0-only

View file

@ -84,11 +84,11 @@ config_load()
fi fi
temp="$(db -q get device.deviceinfo.ModelName)" temp="$(db -q get device.deviceinfo.ModelName)"
[ -d "${temp}" ] && \ [ -n "${temp}" ] && \
MODEL="${temp}" MODEL="${temp}"
temp="$(db -q get device.deviceinfo.SerialNumber)" temp="$(db -q get device.deviceinfo.SerialNumber)"
[ -d "${temp}" ] && \ [ -n "${temp}" ] && \
SERIAL="${temp}" SERIAL="${temp}"
temp="$(uci -q get self-diagnostics.globals.extended_spec_dir)" temp="$(uci -q get self-diagnostics.globals.extended_spec_dir)"