# $FreeBSD: src/etc/profile,v 1.12.2.1 2000/07/31 20:13:26 rwatson Exp $
#
# System-wide .profile file for sh(1).
#
# Uncomment this to give you the default 4.2 behavior, where disk 
# information is shown in K-Blocks
# BLOCKSIZE=K; export BLOCKSIZE
#
# For the setting of languages and character sets please see
# login.conf(5) and in particular the charset and lang options.
# For full locales list check /usr/share/locale/*
# You should also read the setlocale(3) man page for information
# on how to achieve more precise control of locale settings.
#
# Read system messages
# msgs -f
# Allow terminal messages
# mesg y
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/opt/bin:/opt/sbin

# The following is needed for single-user mode
if $CHROOT/bin/test -d ${CHROOT:-/junos}; then
    CHROOT=${CHROOT:-/junos}
    SINGLE_USER=:
    for d in `IFS=:; echo $PATH`
    do
        PATH=$PATH:$CHROOT$d
    done
    export PATH SINGLE_USER
    if [ -s $CHROOT/etc/rc.fips ]; then
        cat << EOM >&2

NOTE:  If you exit from this shell, the system will attempt to
come up normally.  However the securelevel has already been raised
so kernel modules cannot be loaded and this may prevent the system
being fully functional.

The best way to bring the system up from here is to 'reboot'.

To run a shell with a normal view of the system:

	chroot $CHROOT /bin/sh

EOM
    else
        cat << EOM >&2

To run the rest of rc manually (after the above):

	chroot $CHROOT /bin/sh /etc/rc.chroot

and to run a shell with a normal view of the system:

	chroot $CHROOT /bin/sh

EOM
    fi
fi
