mirror of https://github.com/OpenIPC/firmware.git
				
				
				
			Add SENSOR environment variable
							parent
							
								
									2122bfa5c4
								
							
						
					
					
						commit
						40e8e7a32a
					
				|  | @ -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=${HOME:-/root} | ||||
| export TZ=$(cat /etc/TZ) | ||||
| export SENSOR=$(fw_printenv -n sensor) | ||||
| 
 | ||||
| if [ "$PS1" ]; then | ||||
| 	[ -f /etc/os-release ] && . /etc/os-release | ||||
|  |  | |||
|  | @ -37,6 +37,7 @@ start() { | |||
| 	export TZ=$(cat /etc/TZ) | ||||
| 	load_hisilicon -i | ||||
| 	# | ||||
| 	export SENSOR=$(fw_printenv -n sensor) | ||||
| 	load_majestic | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue