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 # Mount root read-only
17 /bin
/mount
-n -o remount
,ro
/
20 /sbin
/fsck
-A -T -C -a
23 echo "*************** FILESYSTEM CHECK FAILED ******************"
25 echo "* Please repair manually and reboot. Note that the root *"
26 echo "* file system is currently mounted read-only. To remount *"
27 echo "* it read-write type: mount -n -o remount,rw / *"
28 echo "* When you exit the maintainance shell the system will *"
29 echo "* reboot automatically. *"
31 echo "************************************************************"
34 echo "Automatic reboot in progress..."
36 /bin
/mount
-n -o remount
,ro
/
41 # Mount local filesystems
42 /bin
/mount
-n -o remount
,rw
/
43 /bin
/umount
/sys
/proc
46 /bin
/mount
-o remount
,rw
/
47 /bin
/mount
-a -O no_netdev
54 /bin
/rm -rf /forcefsck
/fastboot
/halt
/poweroff
55 /bin
/rm -rf /etc
/nologin
/etc
/shutdownpid
56 (cd /var
/run
&& /usr
/bin
/find .
-name "*.pid" -delete)
57 (cd /var
/lock
&& /usr
/bin
/find .
! -type d
-delete)
58 (cd /tmp
&& /usr
/bin
/find .
! -name .
-delete)
59 /bin
/mkdir
-m 1777 /tmp
/.ICE-unix
61 # Set kernel variables
62 /sbin
/sysctl
-p > /dev
/null
64 # Update shared library links
68 if [ "$HOSTNAME" ]; then
69 echo "hostname: $HOSTNAME"
70 /bin
/hostname
$HOSTNAME
74 /bin
/cat /var
/lib
/urandom
/seed
> /dev
/urandom
76 # Configure system clock
77 if [ "$TIMEZONE" ]; then
78 /bin
/ln -snf /usr
/share
/zoneinfo
/$TIMEZONE /etc
/localtime
80 #/sbin/hwclock --hctosys
85 /usr
/bin
/setfont
$FONT
89 if [ "$KEYMAP" ]; then
90 echo "keyboard: $KEYMAP"
91 /bin
/loadkeys
-q $KEYMAP
94 # Screen blanks after 5 minutes idle time
95 /usr
/bin
/setterm
-blank 5
97 # Run module initialization script
98 if [ -x /etc
/rc.modules
]; then
103 /bin
/dmesg
> /var
/log
/boot