3 # /etc/rc: system boot script
6 echo "The system is coming up. Please wait."
12 /bin
/mount
-n -t proc none
/proc
13 /bin
/mount
-n -t sysfs none
/sys
16 # Create device-mapper device nodes and scan for LVM volume groups
17 if [ -x /sbin
/lvm
]; then
18 /sbin
/vgscan
--mknodes --ignorelockingfailure
19 /sbin
/vgchange
--ignorelockingfailure -a y
22 # Mount root read-only
23 /bin
/mount
-n -o remount
,ro
/
26 /sbin
/fsck
-A -T -C -a
29 echo "*************** FILESYSTEM CHECK FAILED ******************"
31 echo "* Please repair manually and reboot. Note that the root *"
32 echo "* file system is currently mounted read-only. To remount *"
33 echo "* it read-write type: mount -n -o remount,rw / *"
34 echo "* When you exit the maintainance shell the system will *"
35 echo "* reboot automatically. *"
37 echo "************************************************************"
40 echo "Automatic reboot in progress..."
42 /bin
/mount
-n -o remount
,ro
/
47 # Mount local filesystems
48 /bin
/mount
-n -o remount
,rw
/
49 /bin
/umount
/sys
/proc
52 /bin
/mount
-o remount
,rw
/
53 /bin
/mount
-a -O no_netdev
60 /bin
/rm -rf /forcefsck
/fastboot
/etc
/nologin
/etc
/shutdownpid
61 (cd /var
/run
&& /usr
/bin
/find .
-name "*.pid" -delete)
62 (cd /var
/lock
&& /usr
/bin
/find .
! -type d
-delete)
63 (cd /tmp
&& /usr
/bin
/find .
! -name .
-delete)
64 /bin
/mkdir
-m 1777 /tmp
/.ICE-unix
66 # Set kernel variables
67 /sbin
/sysctl
-p > /dev
/null
69 # Update shared library links
73 if [ "$HOSTNAME" ]; then
74 echo "hostname: $HOSTNAME"
75 /bin
/hostname
$HOSTNAME
79 /bin
/cat /var
/lib
/urandom
/seed
> /dev
/urandom
81 # Configure system clock
82 if [ "$TIMEZONE" ]; then
83 /bin
/ln -snf /usr
/share
/zoneinfo
/$TIMEZONE /etc
/localtime
85 /sbin
/hwclock --hctosys
90 /usr
/bin
/setfont
$FONT
94 if [ "$KEYMAP" ]; then
95 echo "keyboard: $KEYMAP"
96 /usr
/bin
/loadkeys
-q $KEYMAP
99 # Screen blanks after 15 minutes idle time
100 /usr
/bin
/setterm
-blank 15
102 # Run module initialization script
103 if [ -x /etc
/rc.modules
]; then
108 /bin
/dmesg
> /var
/log
/boot