summaryrefslogtreecommitdiff
path: root/rc.sysinit
diff options
context:
space:
mode:
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 /