⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rc

📁 <B>Digital的Unix操作系统VAX 4.2源码</B>
💻
字号:
# @(#)rc	4.5	(ULTRIX)	10/15/90HOME=/;PATH=/bin:/usr/ucb:/usr/binexport HOME PATH[ -r /etc/netblk.o ] && {	DISKLESS=1	export DISKLESS}/etc/startcpu 	>/dev/consoledate >/dev/consoleif [ $1x = autobootx ]then	echo Automatic reboot in progress... >/dev/console	/etc/fsck -p >/dev/console	case $? in	0)	 	;;	4)		/etc/reboot -n		;;	8)                echo "Automatic reboot failed.  Unable to insure" > /dev/console                echo "file system integrity.  Run the fsck" > /dev/console                echo "command manually." > /dev/console		exit 1		;;	12)		echo "Reboot interrupted" >/dev/console		exit 1		;;	*)		echo "Unknown error in reboot" > /dev/console		exit 1		;;	esacfirm -f /etc/nologin# attempt to rationally recover the passwd file if neededif [ -s /etc/ptmp ]then	if [ -s /etc/passwd ]	then		ls -l /etc/passwd /etc/ptmp >/dev/console		rm -f /etc/ptmp		# should really remove the shorter	else		echo 'passwd file recovered from ptmp' >/dev/console		mv /etc/ptmp /etc/passwd	fielse	[ -r /etc/ptmp ] && {		echo 'removing passwd lock file' >/dev/console		rm -f /etc/ptmp	}fiif [ "$DISKLESS" ]then 	/etc/nfs_umount -b	>/dev/null 2>&1	/etc/mount -a -t nfs 	>/dev/console	/usr/etc/rdate -s 	>/dev/consolefi/etc/mount -a -t ufs		>/dev/console/etc/swapon -a			>/dev/consoleif [ -f /etc/dmsinit ]then	2>&1 /etc/dmsinit </dev/console >/dev/console || exit 1 fi# Rebuild the passwd data base.if [ -s /etc/passwd ]    then	if [ -f /usr/etc/mkpasswd -a -f /etc/passwd.pag ]	    then		echo 'Rebuilding the passwd data base...' >/dev/console		( cd /etc ; /usr/etc/mkpasswd -u passwd >/dev/console  2>&1 )	fielse	echo 'The password file is empty' > /dev/consolefi/usr/etc/lmf reset					>/dev/console 2>&1sh /etc/rc.local 				echo 'preserving editor files' 	>/dev/console(cd /tmp; /usr/lib/ex3.7preserve -a)				echo clearing /tmp		>/dev/console(cd /tmp; rm -f *; chmod 1777 /tmp)				echo -n 'standard daemons:'	>/dev/console/etc/update;			echo -n ' update'		>/dev/console/etc/cron;			echo -n ' cron'			>/dev/console/etc/accton /usr/adm/acct;	echo -n ' accounting'		>/dev/console[ -f /etc/inetd ] && {	/etc/inetd;		echo -n ' network'		>/dev/console}#[ -f /etc/rwhod ] && {#	if [ "$DISKLESS" ]#	then#		/etc/rwhod -b#	else#		/etc/rwhod#	fi#	echo -n ' rwhod'		>/dev/console#}[ -f /etc/snmpd ] && {	/etc/snmpd;		echo -n ' snmpd'		>/dev/console}cd /usr/spoolrm -f uucp/LCK.*[ -f /usr/lib/lpd ] && {	rm -f /dev/printer	/usr/lib/lpd &		echo -n ' printer'		>/dev/console}				echo '.'			>/dev/console[ -f /etc/elcsd ] && {	/etc/elcsd &	echo 'start errlog daemon - elcsd'	>/dev/console}date								>/dev/consoleexit 0

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -