summaryrefslogtreecommitdiff
path: root/packages/base-files
diff options
context:
space:
mode:
authorOyvind Repvik <nail@nslu2-linux.org>2005-07-01 00:02:10 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-07-01 00:02:10 +0000
commitbe3ad977017a24c6547d492c99d51fa5083bd34b (patch)
tree163c50c6482da79569737e2048bbf344408cc280 /packages/base-files
parent2ec0f3ba52486f6030f16d453490d71cbb7ceb06 (diff)
Add and export TERM and EDITOR variables. Should be sane defaults.
Without this, packages like cron "break" (User has to figure out how to set it)
Diffstat (limited to 'packages/base-files')
-rw-r--r--packages/base-files/base-files/profile4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/base-files/base-files/profile b/packages/base-files/base-files/profile
index 3de4dfe607..f24fec92ca 100644
--- a/packages/base-files/base-files/profile
+++ b/packages/base-files/base-files/profile
@@ -2,6 +2,8 @@
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).
PATH="/usr/local/bin:/usr/bin:/bin"
+EDITOR="/bin/vi" # needed for packages like cron
+TERM="vt100" # Basic terminal capab. For screen etc.
if [ "`id -u`" -eq 0 ]; then
PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin:
@@ -18,7 +20,7 @@ if [ -d /etc/profile.d ]; then
unset i
fi
-export PATH PS1 OPIEDIR QPEDIR QTDIR
+export PATH PS1 OPIEDIR QPEDIR QTDIR EDITOR TERM
umask 022