summaryrefslogtreecommitdiff
path: root/base-files
diff options
context:
space:
mode:
Diffstat (limited to 'base-files')
-rw-r--r--base-files/base-files/etc/profile14
-rw-r--r--base-files/base-files/share/dot.profile10
2 files changed, 15 insertions, 9 deletions
diff --git a/base-files/base-files/etc/profile b/base-files/base-files/etc/profile
index a3932c974a..2e28fc777b 100644
--- a/base-files/base-files/etc/profile
+++ b/base-files/base-files/etc/profile
@@ -6,16 +6,12 @@ QPEDIR=/opt/QtPalmtop
QTDIR=/opt/QtPalmtop
PATH="/opt/QtPalmtop/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games"
+if [ "`id -u`" -eq 0 ]; then
+ PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin:
+fi
if [ "$PS1" ]; then
- if [ "$BASH" ]; then
- PS1='\u@\h:\w\$ '
- else
- if [ "`id -u`" -eq 0 ]; then
- PS1='# '
- else
- PS1='$ '
- fi
- fi
+# works for bash and ash (no other shells known to be in use here)
+ PS1='\u@\h:\w\$ '
fi
export PATH PS1 OPIEDIR QPEDIR QTDIR
diff --git a/base-files/base-files/share/dot.profile b/base-files/base-files/share/dot.profile
index e69de29bb2..979793e8b5 100644
--- a/base-files/base-files/share/dot.profile
+++ b/base-files/base-files/share/dot.profile
@@ -0,0 +1,10 @@
+# ~/.profile: executed by Bourne-compatible login shells.
+
+if [ -f ~/.bashrc ]; then
+ . ~/.bashrc
+fi
+
+# path set by /etc/profile
+# export PATH
+
+mesg n