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:
Arturo Buzarra 2020-10-06 15:22:45 +02:00 committed by Francisco Gil Martinez
parent 06189293f4
commit 77e30407fd
1 changed files with 1 additions and 1 deletions

View File

@ -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