sysinfo: Add information about TrustFence (TM)

https://jira.digi.com/browse/DEL-3025

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
This commit is contained in:
Diaz de Grenu, Jose 2016-10-25 16:23:08 +02:00
parent 66728c99fd
commit 7a1f46175c
1 changed files with 19 additions and 0 deletions

View File

@ -182,6 +182,25 @@ make_report(){
ip link show ip link show
printf "\n" printf "\n"
echo "--------------------------------------"
echo "- -"
echo "- TrustFence -"
echo "- -"
echo "--------------------------------------"
echo ""
if [ "$(($(cat /sys/fsl_otp/HW_OCOTP_LOCK) & 2))" != "0" ]; then
echo "Device status: [CLOSED]"
else
echo "Device status: [OPEN]"
fi
if [ -f "/proc/device-tree/digi,uboot-env,encrypted" ]; then
echo "U-Boot environment is encrypted"
else
echo "U-Boot environment is NOT encrypted"
fi
echo "-------------End of report------------" echo "-------------End of report------------"
} }