# HG changeset patch # User David Demelier # Date 1554748890 -7200 # Node ID 162a9418ba15bd4bf813bc19dea75a167559cae9 # Parent 33e0028a665a795898359e3cc3c4c43746985c3e core/etc: add /etc/profile template diff -r 33e0028a665a -r 162a9418ba15 core/etc/etc.sh --- a/core/etc/etc.sh Mon Apr 08 20:30:00 2019 +0200 +++ b/core/etc/etc.sh Mon Apr 08 20:41:30 2019 +0200 @@ -24,6 +24,7 @@ etc/fstab etc/passwd etc/group + etc/profile etc/securetty etc/shadow etc/shells" @@ -38,5 +39,6 @@ install -m 644 securetty $DESTDIR/etc install -m 600 shadow $DESTDIR/etc install -m 644 shells $DESTDIR/etc + install -m 644 profile $DESTDIR/etc ln -sf /proc/self/mounts $DESTDIR/etc/mtab } diff -r 33e0028a665a -r 162a9418ba15 core/etc/profile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/core/etc/profile Mon Apr 08 20:41:30 2019 +0200 @@ -0,0 +1,10 @@ +# +# /etc/profile: system-wide defaults for shells +# + +export PS1="\u@\H \w \\$ " +export PATH="/usr/bin:/usr/local/bin" + +if [ "$UID" -eq 0 ]; then + export PATH="$PATH:/usr/sbin:/usr/local/sbin" +fi