fix $HOME in /etc/profile (#4424)

SVN-Revision: 13914
owl
Felix Fietkau 2009-01-07 04:38:57 +00:00
parent 59a00d52a9
commit 6d27b16e2b
1 changed files with 2 additions and 1 deletions

View File

@ -2,7 +2,8 @@
[ -f /etc/banner ] && cat /etc/banner [ -f /etc/banner ] && cat /etc/banner
export PATH=/bin:/sbin:/usr/bin:/usr/sbin export PATH=/bin:/sbin:/usr/bin:/usr/sbin
export HOME=/root export HOME=$(grep -e "^${USER:-root}:" /etc/passwd | cut -d ":" -f 6)
export HOME=${HOME:-/root}
export PS1='\u@\h:\w\$ ' export PS1='\u@\h:\w\$ '
[ -x /bin/more ] || alias more=less [ -x /bin/more ] || alias more=less