sysinfo: fix security status section for ConnectCore 8M platforms
Commit c24d1d96 ("sysinfo: adapt script after removal of deprecated fsl_otp
driver") introduced support to determine if a device is closed by checking
a new boolean property on the DT for the CC8X platforms, however the CC8M
platforms use the same mechanism. This commit modifies the sysinfo script to
check also the DT for the CC8M platforms.
https://jira.digi.com/browse/DEL-7263
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
This commit is contained in:
parent
06189293f4
commit
77e30407fd
|
|
@ -254,7 +254,7 @@ make_report(){
|
||||||
echo "--------------------------------------"
|
echo "--------------------------------------"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
if grep -qs '\<digi,ccimx8x\>' /proc/device-tree/compatible; then
|
if grep -qs '\<digi,ccimx8\(x\|m\)\>' /proc/device-tree/compatible; then
|
||||||
if [ -f "/proc/device-tree/digi,tf-closed" ]; then
|
if [ -f "/proc/device-tree/digi,tf-closed" ]; then
|
||||||
echo "Security status: [CLOSED]"
|
echo "Security status: [CLOSED]"
|
||||||
elif [ -f "/proc/device-tree/digi,tf-open" ]; then
|
elif [ -f "/proc/device-tree/digi,tf-open" ]; then
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue