rc revision 1.149
11.149Slukem#!/bin/sh 21.149Slukem# 31.149Slukem# $NetBSD: rc,v 1.149 2000/03/10 13:15:58 lukem Exp $ 41.149Slukem# 51.149Slukem# rc.sh -- 61.149Slukem# Run the scripts in /etc/rc.d with rcorder. 71.149Slukem 81.149Slukem# System startup script run by init on autoboot or after single-user. 91.149Slukem# Output and error are redirected to console by init, and the console 101.149Slukem# is the controlling terminal. 111.1Scgd 121.149Slukemexport HOME=/ 131.149Slukemexport PATH=/sbin:/bin:/usr/sbin:/usr/bin 141.1Scgd 151.149Slukem. /etc/rc.subr 161.149Slukem. /etc/rc.conf 171.50Sthorpej 181.149Slukemif [ "$1" = autoboot ]; then 191.149Slukem autoboot=yes 201.149Slukem _rc_fast_run=yes # run_rc_command(): do fast booting 211.50Sthorpejfi 221.107Stron 231.149Slukemstty status '^T' 241.1Scgd 251.149Slukem# Set shell to ignore SIGINT (2), but not children; 261.149Slukem# shell catches SIGQUIT (3) and returns to single user. 271.149Slukem# 281.149Slukemtrap : 2 291.38Scgdtrap "echo 'Boot interrupted.'; exit 1" 3 301.1Scgd 311.149Slukemfiles=`rcorder /etc/rc.d/*` 321.40Scgd 331.149Slukemfor i in $files; do 341.149Slukem run_rc_script $i start 351.149Slukemdone 361.1Scgd 371.1Scgddate 381.1Scgdexit 0 39