Merge pull request from TheChatty/patch-1

Fix first time usage of load_hisilicon
pull/225/head
Ystinia Zalatova 2022-05-14 17:51:26 +03:00 committed by GitHub
commit 69038d6db8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
general/package/hisilicon-osdrv-hi3516cv100/files/script

View File

@ -408,8 +408,8 @@ else
logger -s -p daemon.info -t hisilicon "Get data from environment and set SENSOR as ${SENSOR}"
else
insert_detect
SENSOR_DETECT=$(ipcinfo --short-sensor)
export SENSOR=${SENSOR_DETECT:=unknown}
SNS_TYPE=$(ipcinfo --short-sensor)
export SENSOR=${SNS_TYPE:=unknown}
remove_detect
logger -s -p daemon.info -t hisilicon "Get data from ipcinfo and set SENSOR as ${SENSOR}"
fw_setenv sensor $SENSOR && logger -s -p daemon.info -t hisilicon "Write detected ${SENSOR} to U-Boot ENV"