sysinfo: improve the search of the otp folder

With the change of bsp now we have several entries under
/sys/bus/nvmem/devices/ in the CC6UL platform and we should
reduce the num of folders where the otp folder can be found.

ls /sys/bus/nvmem/devices/

bootloader
environment
imx-ocotp0
linux
recovery
rootfs
safe
update

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

Signed-off-by: Francisco Gil Martinez <francisco.gilmartinez@digi.com>
This commit is contained in:
Francisco Gil Martinez 2020-05-11 13:00:26 +02:00
parent 2efc2c3e42
commit 45058e35f9
1 changed files with 1 additions and 1 deletions

View File

@ -241,7 +241,7 @@ make_report(){
done
echo ""
fi
for d in /sys/bus/nvmem/devices/*; do
for d in /sys/bus/nvmem/devices/imx-ocotp*; do
[ -e $d ] || continue
echo "$d:"
hexdump -C $d/nvmem