Mercurial > vanilla
changeset 504:162a9418ba15
core/etc: add /etc/profile template
author | David Demelier <markand@malikania.fr> |
---|---|
date | Mon, 08 Apr 2019 20:41:30 +0200 |
parents | 33e0028a665a |
children | 7828241c9634 |
files | core/etc/etc.sh core/etc/profile |
diffstat | 2 files changed, 12 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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 }
--- /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