mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-11-07 04:36:52 -10:00
When starting single-user mode, use the home directory from user root as current directory and for the HOME environment variable. If the directory does not exist, set HOME=/. Also adjust /root/.profile to stop setting HOME, since it should always have been set now. This is intended to keep shell startup files working in single-user mode after /.profile has been removed. Reviewed by: emaste, ivy, kevans MFC after: 1 week Relnotes: yes Differential Revision: https://reviews.freebsd.org/D52527
17 lines
472 B
Plaintext
17 lines
472 B
Plaintext
#
|
|
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:~/bin
|
|
export PATH
|
|
TERM=${TERM:-xterm}
|
|
export TERM
|
|
PAGER=less
|
|
export PAGER
|
|
|
|
# set ENV to a file invoked each time sh is started for interactive use.
|
|
ENV=$HOME/.shrc; export ENV
|
|
|
|
# Query terminal size; useful for serial lines.
|
|
if [ -x /usr/bin/resizewin ] ; then /usr/bin/resizewin -z ; fi
|
|
|
|
# Uncomment to display a random cookie on each login.
|
|
# if [ -x /usr/bin/fortune ] ; then /usr/bin/fortune -s ; fi
|