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=$(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 | ||||||
|  |  | ||||||
|  | @ -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() { | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue