Annotation of src/etc/rc, Revision 1.160
1.149 lukem 1: #!/bin/sh
2: #
1.160 ! lukem 3: # $NetBSD: rc,v 1.159 2002/03/22 04:16:38 lukem Exp $
1.149 lukem 4: #
1.154 lukem 5: # rc --
1.149 lukem 6: # Run the scripts in /etc/rc.d with rcorder.
7:
1.154 lukem 8: # System startup script run by init(8) on autoboot or after single-user.
1.149 lukem 9: # Output and error are redirected to console by init, and the console
10: # is the controlling terminal.
1.1 cgd 11:
1.149 lukem 12: export HOME=/
13: export PATH=/sbin:/bin:/usr/sbin:/usr/bin
1.157 lukem 14: umask 022
1.1 cgd 15:
1.149 lukem 16: . /etc/rc.subr
17: . /etc/rc.conf
1.155 lukem 18: _rc_conf_loaded=YES
1.150 enami 19:
20: if ! checkyesno rc_configured; then
21: echo "/etc/rc.conf is not configured. Multiuser boot aborted."
22: exit 1
23: fi
1.50 thorpej 24:
1.149 lukem 25: if [ "$1" = autoboot ]; then
26: autoboot=yes
1.160 ! lukem 27: rc_fast=yes # run_rc_command(): do fast booting
1.50 thorpej 28: fi
1.107 tron 29:
1.149 lukem 30: stty status '^T'
1.1 cgd 31:
1.158 lukem 32: # Set shell to ignore SIGINT, but not children;
33: # shell catches SIGQUIT and returns to single user.
1.149 lukem 34: #
1.158 lukem 35: trap : INT
36: trap "echo 'Boot interrupted.'; exit 1" QUIT
1.1 cgd 37:
1.156 lukem 38: date
39:
1.153 lukem 40: files=`rcorder -s nostart /etc/rc.d/*`
1.155 lukem 41:
42: for _rc_elem in $files; do
43: run_rc_script $_rc_elem start
1.149 lukem 44: done
1.1 cgd 45:
46: date
47: exit 0
CVSweb <webmaster@jp.NetBSD.org>