From 7f4117b05f9e4730657779ec7d4b3b08ba12616c Mon Sep 17 00:00:00 2001 From: Judd Vinet Date: Fri, 10 Oct 2003 01:10:18 +0000 Subject: added color to rc messages and fixed bug #168 --- rc.sysinit | 69 ++++++++++++++++++++++++++++++++++---------------------------- 1 file changed, 38 insertions(+), 31 deletions(-) (limited to 'rc.sysinit') diff --git a/rc.sysinit b/rc.sysinit index 4ee2693..6124dbe 100755 --- a/rc.sysinit +++ b/rc.sysinit @@ -3,16 +3,25 @@ # /etc/rc.sysinit # -echo -n "[ " -echo " ]" -echo -n "[ Booting Arch Linux 0.5 " -echo " ]" -echo -n "[ " -echo " ]" - . /etc/rc.conf . /etc/rc.d/functions +if [ "$USECOLOR" = "YES" -o "$USECOLOR" = "yes" ]; then + echo -e "\n\033[1;32mArch Linux v0.5 \033[1;37m(\033[1;33mNova\033[1;37m)" + echo -e "\033[1;32m|\033[1;0m" + echo -e "\033[1;32m|\033[1;37m http://www.archlinux.org\033[1;0m" + echo -e "\033[1;32m|\033[1;0m Copyright 2002-2003 Judd Vinet" + echo -e "\033[1;32m|\033[1;0m Distributed under the GNU Public License (GPL)" + echo -e "\033[1;32m|\033[1;0m" +else + echo -e "\nArch Linux v0.5 (Nova)" + echo "|" + echo "| http://www.archlinux.org" + echo "| Copyright 2002-2003 Judd Vinet" + echo "| Distributed under the GNU Public License (GPL)" + echo "|" +fi + status "Starting DevFS Daemon" /sbin/devfsd /dev if [ -f /etc/lvmtab ]; then @@ -31,31 +40,29 @@ status "Activating Swap" /sbin/swapon -a status "Mounting Root Read-only" /bin/mount -n -o remount,ro / -if [ -x /sbin/fsck ]; then - stat_busy "Checking Filesystems" - /sbin/fsck -A -T -C -a - if [ $? -gt 1 ]; then - stat_fail - echo - echo "***************** FILESYSTEM CHECK FAILED ****************" - echo "* *" - echo "* Please repair manually and reboot. Note that the root *" - echo "* file system is currently mounted read-only. To remount *" - echo "* it read-write type: mount -n -o remount,rw / *" - echo "* When you exit the maintainance shell the system will *" - echo "* reboot automatically. *" - echo "* *" - echo "************************************************************" - echo - /sbin/sulogin -p - echo "Automatic reboot in progress..." - /bin/umount -a - /bin/mount -n -o remount,ro / - /sbin/reboot -f - exit 0 - fi - stat_done +stat_busy "Checking Filesystems" +/sbin/fsck -A -T -C -a +if [ $? -gt 1 ]; then + stat_fail + echo + echo "***************** FILESYSTEM CHECK FAILED ****************" + echo "* *" + echo "* Please repair manually and reboot. Note that the root *" + echo "* file system is currently mounted read-only. To remount *" + echo "* it read-write type: mount -n -o remount,rw / *" + echo "* When you exit the maintainance shell the system will *" + echo "* reboot automatically. *" + echo "* *" + echo "************************************************************" + echo + /sbin/sulogin -p + echo "Automatic reboot in progress..." + /bin/umount -a + /bin/mount -n -o remount,ro / + /sbin/reboot -f + exit 0 fi +stat_done stat_busy "Mounting Local Filesystems" /bin/mount -n -o remount,rw / -- cgit v1.2.3