Add SENSOR environment variable

pull/223/head
Dmitry Ermakov 2022-05-08 20:26:06 +03:00
parent 2122bfa5c4
commit 40e8e7a32a
2 changed files with 3 additions and 1 deletions

View File

@ -2,6 +2,7 @@ export PATH="/bin:/sbin:/usr/bin:/usr/sbin:/tmp"
export HOME=$(grep -e "^${USER:-root}:" /etc/passwd | cut -d ":" -f 6) export HOME=$(grep -e "^${USER:-root}:" /etc/passwd | cut -d ":" -f 6)
export HOME=${HOME:-/root} export HOME=${HOME:-/root}
export TZ=$(cat /etc/TZ) export TZ=$(cat /etc/TZ)
export SENSOR=$(fw_printenv -n sensor)
if [ "$PS1" ]; then if [ "$PS1" ]; then
[ -f /etc/os-release ] && . /etc/os-release [ -f /etc/os-release ] && . /etc/os-release

View File

@ -37,7 +37,8 @@ start() {
export TZ=$(cat /etc/TZ) export TZ=$(cat /etc/TZ)
load_hisilicon -i load_hisilicon -i
# #
load_majestic export SENSOR=$(fw_printenv -n sensor)
load_majestic
} }
stop() { stop() {