do not accept "sensor not found" as a sensor name (#566)

pull/568/head
Paul Philippov 2022-11-18 14:17:01 -05:00 committed by GitHub
parent 00be133a26
commit 9b26c4aca4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -44,6 +44,12 @@ start() {
#
# export SENSOR=$(fw_printenv -n sensor)
export SENSOR=$(cat /proc/jz/sinfo/info | sed -e 's/.*://')
SENSOR=$(cat /proc/jz/sinfo/info | sed -e 's/.*://')
if [ "sensor not found" = "$SENSOR" ]; then
unset SENSOR
else
export SENSOR=$SENSOR
fi
load_majestic
}