mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
sh: Set PATH envvar after setting HOME in dotfile
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 MFC after: 3 days Reviewed by: jilles, emaste Differential Revision: https://reviews.freebsd.org/D27003
This commit is contained in:
parent
426682b05a
commit
fcfa64801a
1 changed files with 2 additions and 2 deletions
|
|
@ -1,9 +1,9 @@
|
|||
# $FreeBSD$
|
||||
#
|
||||
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:~/bin
|
||||
export PATH
|
||||
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue