diff options
| author | Brad Davis <brd@FreeBSD.org> | 2018-08-29 16:59:19 +0000 |
|---|---|---|
| committer | Brad Davis <brd@FreeBSD.org> | 2018-08-29 16:59:19 +0000 |
| commit | 94ec7ec758aad2cdfd976ef5385ca2b345a6d64d (patch) | |
| tree | a4a12c4c31c0716ea7097bf6ad67785fc5da43c6 /bin/sh | |
| parent | bc0e855bd9c000b7c2ad7d1507ea8f76858e2f0f (diff) | |
Notes
Diffstat (limited to 'bin/sh')
| -rw-r--r-- | bin/sh/Makefile | 10 | ||||
| -rw-r--r-- | bin/sh/dot.profile | 16 |
2 files changed, 25 insertions, 1 deletions
diff --git a/bin/sh/Makefile b/bin/sh/Makefile index 652e9ddc3dbf9..abd756bb8e6de 100644 --- a/bin/sh/Makefile +++ b/bin/sh/Makefile @@ -3,7 +3,9 @@ .include <src.opts.mk> -CONFS= profile +CONFS= dot.profile profile +CONFSDIR_dot.profile= /root +CONFSNAME_dot.profile= .profile PACKAGE=runtime PROG= sh INSTALLFLAGS= -S @@ -61,4 +63,10 @@ token.h: mktokens HAS_TESTS= SUBDIR.${MK_TESTS}+= tests +beforeinstallconfig: + rm -f ${DESTDIR}/.profile + +afterinstallconfig: + ${INSTALL_LINK} ${TAG_ARGS} ${DESTDIR}/root/.profile ${DESTDIR}/.profile + .include <bsd.prog.mk> diff --git a/bin/sh/dot.profile b/bin/sh/dot.profile new file mode 100644 index 0000000000000..76ebfd5e61682 --- /dev/null +++ b/bin/sh/dot.profile @@ -0,0 +1,16 @@ +# $FreeBSD$ +# +PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:~/bin +export PATH +HOME=/root +export HOME +TERM=${TERM:-xterm} +export TERM +PAGER=less +export PAGER + +# 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 |
