obuspa: Fix full_access assignment

This commit is contained in:
Vivek Kumar Dutta 2025-02-27 13:59:04 +05:30
parent 60b21cb3ce
commit 2aa49112f3
No known key found for this signature in database
GPG key ID: 4E09F5AD8265FD4C
2 changed files with 11 additions and 1 deletions

View file

@ -5,7 +5,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=obuspa
PKG_VERSION:=9.0.4.9
PKG_VERSION:=9.0.4.10
LOCAL_DEV:=0
ifneq ($(LOCAL_DEV),1)

View file

@ -290,6 +290,16 @@ get_role_index()
return 0
fi
if [ "${name}" = "full_access" ] || [ "${name}" = "Full Access" ]; then
echo "Device.LocalAgent.ControllerTrust.Role.1"
return 0
fi
if [ "${name}" = "Untrusted" ]; then
echo "Device.LocalAgent.ControllerTrust.Role.1"
return 0
fi
# Get if from CTRUST file first if present, then from dbdump and then use default Untrusted role
if [ -f "${CTRUST_RESET_FILE}" ]; then
val="$(grep "Device.LocalAgent.ControllerTrust.Role.\d.Name" ${CTRUST_RESET_FILE} |grep $name)"