nls "Entering non-interactive startup"
fi
fi
-
+
+# calculate bootsplash variables
+sscripts=$(ls -1 /etc/rc.d/rc${runlevel}.d/ 2> /dev/null | grep -c "^S")
+export sscripts
+
+if test "$previous" != "N" ; then
+ kscripts=$(ls -1 /etc/rc.d/rc${previous}.d/ 2> /dev/null | grep -c "^K")
+ export kscripts
+fi
+
+if test "$revious" == "N" -a "$runlevel" == "5" ; then
+ export progress=16
+ sscripts=$(( $sscripts + 15 ))
+else
+ export progress=0
+fi
+
+
# set onlcr to avoid staircase effect and do not lock scrolling
stty onlcr -ixon 0>&1
PATH=/bin:/sbin:/usr/bin:/usr/sbin
export PATH
+# reasonable start values for bootsplash progress.
+export progress=0
+export sscripts=45
+export kscripts=45
+
# Read functions
. /etc/rc.d/init.d/functions
RUN_LDCONFIG=yes
fi
+# Disable splash when requested
+[ -e /proc/splash ] && is_no "$BOOT_SPLASH" && echo "0" > /proc/splash
+
# Print welcome message
nls "\t\t\t%sPowered by %sPLD Linux Distribution%s" "$(termput setaf 6)" "$(termput setaf 2)" "$(termput setaf 7)"
if is_yes "$PROMPT"; then
# A return of 4 or higher means there were serious problems.
if [ $rc -gt 3 ]; then
+ [ -e /proc/splash ] && echo "verbose" > /proc/splash
# don't use '\n' in nls macro !
echo
echo
# A return of 2 or 3 means that filesystem was repaired but we need
# to reboot.
elif [ "$rc" = "2" -o "$rc" = "3" ]; then
+ [ -e /proc/splash ] && echo "verbose" > /proc/splash
echo
nls "*** Filesystem was repaired but system needs to be"
nls "*** rebooted before mounting it."
# A non-zero return means there were problems
if [ $rc -gt 0 ]; then
+ [ -e /proc/splash ] && echo "verbose" > /proc/splash
show "Starting up RAID devices"; fail
echo
echo
# A return of 2 or higher means there were serious problems
if [ $rc -gt 1 ]; then
+ [ -e /proc/splash ] && echo "verbose" > /proc/splash
echo
echo
nls "*** An error occurred during the file system check."
# A return of 2 or higher means there were serious problems.
if [ $rc -gt 1 ]; then
- echo "\n\n"
+ [ -e /proc/splash ] && echo "verbose" > /proc/splash
+ echo
+ echo
nls "*** An error occurred during the file system check."
nls "*** Dropping you to a shell; the system will reboot"
nls "*** when you leave the shell."