TERMINFO=/usr/share/terminfo
HOSTNAME=`hostname`

if [ "X`id -u`" == "X0" ]
then
        PS1='$USER@$HOSTNAME # '
else
        PS1='$USER@$HOSTNAME % '
fi

if [ "X`tty`" = "X/dev/ttyS0" ]; then
        # With Minicom, use a basic compatible terminal
        TERM=vt102
else
        # Telnet etc. can use a more advanced (and colored) terminal
        TERM=xterm
fi
export TERM TERMINFO PS1 HOSTNAME

# Update size for ncurses applications to use the whole screen
resize

TZ=$(grep CONFIG_TZ /etc/sysconfig/config | sed -e 's/\(.*\)="\(.*\)"/\2/')
export TZ
