#!/bin/sh
# rc.5 :  virtual terminal 

. /etc/path.conf
. /etc/utils
. /etc/color

VERSION=`cat /etc/version 2>/dev/null`

update &

# /etc/issue


(echo
echo -e " ${BRIGHT}${REVERSE}${GREEN} \
muLinux v\
${VERSION}${NORMAL} running Linux/`uname -r` \\l \
"$REVERSE$GREEN $WHITE $RED $NORMAL""
echo -e $NORMAL) > /etc/issue


# kernel's switch

SplitArgs `cat /proc/cmdline`

if [ "$xwindow" ] ; then
	banner
	. /etc/rc/dialog/basic_setup
	/usr/bin/xwindow
else
	. /setup/rc/setup
fi


# first boot

if [ -f /etc/first_boot ] ; then
        rm -f /etc/first_boot
        [ -x /usr/bin/welcome ] && welcome
fi


# Finish
echo -e $BRIGHT 
cat <<END
########################################################################
Text-based menu typing 'menu'. Helps and other typing 'help'.
Hardware info typing 'info' and 'systest'. Reconfigure typing 'setup'.
Load an extra add-on typing 'setup -f XYZ'. Access the Wizard typing
'wizard'. Install in the Hard-Disk typing 'clone'. File Manager typing 
'pion'. Shutdown with ctrl-alt-del. Have a nice day with muLinux!
########################################################################
END
echo -e $NORMAL

> /var/run/utmp


# End
