mirror of https://github.com/OpenIPC/firmware.git
do not accept "sensor not found" as a sensor name (#566)
parent
00be133a26
commit
9b26c4aca4
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue