# English UTF-8 by default. Interactive shells are userspace, never PID 1.
export PATH=/usr/bin:/bin:/run/fds/bin
export LANG=en_US.UTF-8
export TZ=UTC
umask 022
for f in /etc/profile.d/*.sh; do
    [ ! -r "$f" ] || . "$f"
done
unset f
case $- in
    *i*)
        PS1='FDS# '
        if [ "${UID:-}" = 0 ] && [ "$(cat /usr/share/fds/image-profile)" = recovery ]; then
            PS1='RECOVERY# '
            /usr/bin/fds-boottrace mark console-ready || true
        fi
        if [ "${UID:-}" = 1000 ]; then
            PS1='FDS> '
            _fds_first_prompt() {
                /usr/bin/fds-boottrace mark console-ready || true
                printf '\nREADY.\n'
                unset PROMPT_COMMAND
                unset -f _fds_first_prompt
            }
            PROMPT_COMMAND=_fds_first_prompt
        fi
        ;;
esac
