summaryrefslogtreecommitdiff
path: root/tree/etc/profile
diff options
context:
space:
mode:
Diffstat (limited to 'tree/etc/profile')
-rw-r--r--tree/etc/profile6
1 files changed, 6 insertions, 0 deletions
diff --git a/tree/etc/profile b/tree/etc/profile
index ed401a6..f96461b 100644
--- a/tree/etc/profile
+++ b/tree/etc/profile
@@ -2,6 +2,12 @@
[ -x /usr/bin/less ] && export PAGER=${PAGER:-/usr/bin/less}
+# Support for user/mksh as /bin/sh
+if [ -z $UID -a -n $USER_ID ]; then
+ UID=$USER_ID
+fi
+
+
if [ $UID -eq 0 ]; then
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
PS1="$(uname -n 2>/dev/null) # "