The following changes were made:
* moved files out of unnecessasry directories
* snap_version is now managed by this package
* added /etc/mtab
* added /var/log/{btmp,lastlog,wtmp}
This commit is contained in:
25
SRC/snap-base/profile
Normal file
25
SRC/snap-base/profile
Normal file
@@ -0,0 +1,25 @@
|
||||
# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
|
||||
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).
|
||||
|
||||
alias reset='echo -e "\033c"'
|
||||
|
||||
if [ "`id -u`" -eq 0 ]; then
|
||||
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
|
||||
else
|
||||
PATH="/usr/local/bin:/usr/bin:/bin"
|
||||
fi
|
||||
export PATH
|
||||
|
||||
if [ "$PS1" ]; then
|
||||
if [ "$BASH" ] && [ "$BASH" != "/bin/sh" ]; then
|
||||
if [ -f /etc/bashrc ]; then
|
||||
. /etc/bashrc
|
||||
fi
|
||||
else
|
||||
if [ "`id -u`" -eq 0 ]; then
|
||||
PS1='# '
|
||||
else
|
||||
PS1='$ '
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
Reference in New Issue
Block a user