summaryrefslogtreecommitdiffstats
path: root/projectroot/etc/profile
diff options
context:
space:
mode:
Diffstat (limited to 'projectroot/etc/profile')
-rw-r--r--projectroot/etc/profile27
1 files changed, 27 insertions, 0 deletions
diff --git a/projectroot/etc/profile b/projectroot/etc/profile
new file mode 100644
index 000000000..259113d33
--- /dev/null
+++ b/projectroot/etc/profile
@@ -0,0 +1,27 @@
+# /etc/profile - config for init-shell
+#
+export HISTFILE=/tmp/.ash_history.$USER.$PPID
+
+# This fixes the backspace when telnetting in.
+if [ "$TERM" != "linux" ]; then
+ stty erase ^H
+fi
+
+# source this file for subsequent shells, too
+# (will also be sourced for init-shell)
+export ENV=/etc/profile.environment
+
+# Exec profile provided by other packages
+if [ -d /etc/profile.d ]; then
+ for file in /etc/profile.d/*.sh; do
+ if [ -r $file ]; then
+ . $file
+ fi
+ done
+ unset file
+fi
+# Exec local profile
+if [ -e "/etc/profile.local" ]; then
+ echo "running /etc/profile.local"
+ . /etc/profile.local
+fi