Merge pull request #223 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

View File

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