aboutsummaryrefslogtreecommitdiff
path: root/rc.sysinit
diff options
context:
space:
mode:
authorJudd Vinet <judd@archlinux.org>2003-10-10 01:10:18 +0000
committerJudd Vinet <judd@archlinux.org>2003-10-10 01:10:18 +0000
commit7f4117b05f9e4730657779ec7d4b3b08ba12616c (patch)
tree7ae9206800c5f9495e8203f49a8ec8489536c6aa /rc.sysinit
parentbe8b6f59470b8779c3d4e10b3045507920931896 (diff)
downloadinitscripts-7f4117b05f9e4730657779ec7d4b3b08ba12616c.tar.xz
added color to rc messages and fixed bug #168
Diffstat (limited to 'rc.sysinit')
-rwxr-xr-xrc.sysinit69
1 files changed, 38 insertions, 31 deletions
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 /