# Set the default system PATH.
# For root users, ensure that /usr/local/sbin, /usr/sbin, and /sbin are in
# the $PATH.  Some means of connection don't add these by default (sshd comes
# to mind).
PATH="/usr/local/bin:/usr/bin:/bin"
if [ "$(id -u)" = "0" ] && \
   ! echo "${PATH}" | grep -q /usr/local/sbin 1> /dev/null 2> /dev/null ;
then
   PATH="/usr/local/sbin:/usr/sbin:/sbin:${PATH}"
fi

# Set TERM to linux for unknown type or unset variable:
if [ -z "${TERM}" -o \
   "${TERM}" = "unknown" ];
then
   TERM=linux
fi
 
# Default umask.  A umask of 022 prevents new files from being created group
# and world writable.
umask 022

source /lib/functions/navico_env.sh
navico_env_init

# Append any additional sh scripts found in /etc/profile.d/:
for PROFILE_SCRIPT in /etc/profile.d/*.sh ; do
   if [ -x "${PROFILE_SCRIPT}" ]; then
      . "${PROFILE_SCRIPT}"
   fi
done

unset PROFILE_SCRIPT
