bash: export environment variables in a way that bash understands

* also set xterm as TERM

Change-Id: I39f06a5eab7a1e0920593bf0a52df7e9d780da99
This commit is contained in:
Dan Pasanen
2015-11-24 09:33:23 -06:00
committed by LuK1337
parent 9aad8d60f9
commit 69eaa1c591

View File

@@ -5,12 +5,11 @@
# that can't tolerate any output. So make sure this doesn't display # that can't tolerate any output. So make sure this doesn't display
# anything or bad things will happen ! # anything or bad things will happen !
: ${HOME:=/sdcard} export HOME=/sdcard
: ${HOSTNAME:=$(getprop ro.cm.device)} export HOSTNAME=$(getprop ro.cm.device)
: ${TERM:=linux} export TERM=xterm
: ${TMPDIR:=/data/local/tmp} export TMPDIR=/data/local/tmp
: ${USER:=$(id -un)} export USER=$(id -un)
export HOME HOSTNAME MKSH SHELL TERM TMPDIR USER
# Test for an interactive shell. There is no need to set anything # Test for an interactive shell. There is no need to set anything
# past this point for scp and rcp, and it's important to refrain from # past this point for scp and rcp, and it's important to refrain from