mirror of
https://github.com/opnsense/src.git
synced 2026-05-27 20:02:43 -04:00
In single-user mode, all env vars are absent, so exptilde() would not be
able to expand ~ correctly.
Place the lines setting PATH below HOME, so exptilde() would work as
expected.
Sponsored by: The FreeBSD Foundation
Reviewed by: jilles, emaste
Differential Revision: https://reviews.freebsd.org/D27003
(cherry picked from commit fcfa64801a)
19 lines
507 B
Text
19 lines
507 B
Text
# $FreeBSD$
|
|
#
|
|
HOME=/root
|
|
export HOME
|
|
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
|