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

📄 fisstart

📁 <B>Digital的Unix操作系统VAX 4.2源码</B>
💻
📖 第 1 页 / 共 2 页
字号:
		ZIC="/etc/zoneinfo/US/Pacific"		;;	g|G)		zone=Greenwich		hourswest=0		ZIC="/etc/zoneinfo/GMT"		;;	[0-9] | 1[0-2] )		hourswest="-${zone}"		ZIC="GMT${zone}"		;;	-[1-9] | -1[0-2] )		hourswest=`expr $zone : '[-]\(.*\)'`		ZIC="GMT${zone}"		;;	"")		echo ""		continue		;;	*)	   	echo "Sorry, ${zone}, is not a valid time zone option.  Please enterone of the menu options listed below."	   	continue	   	;;	esac		echo "You selected '$zone' as your time zone area.Is this correct? (y/n) [y]: \c"	read resp	case $resp in	"" | [Yy]* )		break		;;	* )		;;	esacdone################################################################### Set Daylights Savings Time##################################################################while : truedo	echo "Does your area alternate between Daylight Savings and Standardtime? (y/n) [y]: \c"	read dst	case ${dst} in	[yY]*|"")		while :		do	   		echo "Select your geographic area for Daylight Savings Time, using theoptions in the table below.  Selection	Geographic Area ----------------------------------      u		USA      a		Australia      e		Eastern Europe      m		Middle Europe      w		Western Europe      n		None of the above----------------------------------Enter your choice [no default]: \c"			read dst			case ${dst} in			u|U) dst=1; geog=u; area="USA" ;;			a|A) dst=2; geog=a; area="Australia" ;;			w|W) dst=3; geog=w; area="Western Europe" ;;			m|M) dst=4; geog=m; area="Middle Europe" ;;			e|E) dst=5; geog=e; area="Eastern Europe" ;;			n|N) dst=n; geog=n; area="n" ;;			*)				echo "You  typed  an invalid  geographic area.  Please type 'u' for USA, 'a' forAustralia, 'e' for Eastern Europe, 'c' for Central Europe, 'w' for WesternEurope, or 'n' if none of the choices are applicable. ${LL}"				continue				;;			esac			case $area in			n )				echo "You do not want to choose any of the options from the above menu."				;;			* )				echo "You chose '$area' as your Daylight Savings Time Geographic Area."				;;			esac			echo "Is this correct? (y/n) [y]: \c"			read resp			case $resp in			"" | [Yy]* )				break				;;			* )				;;			esac		done		;;	[nN]*)		dst=n; geog=n		break		;;	*)		echo ""		continue		;;	esac	breakdone################################################################### Check to see what kind of display they are using##################################################################WS_BITS="Y"while :do	echo "Select one of the options below that describes the type of displaybeing used:	1) Black and White	2) Color	3) Gray ScaleEnter your choice: \c"	read ans	ans=`echo $ans`	case $ans in	1 | 2 )		ISL_ISGRAY=0		break		;;	3 )		ISL_ISGRAY=1		break		;;	* )		;;	esacdoneexport ADVFLAG WS_BITS ISL_ISGRAY######################################################## Reset the trap to ignore interrupts from here on out#######################################################trap '' 1 3 18################################################################### Now Set Everything Up Using The Date Command##################################################################case ${dst} in"" | n) 	TIMEZONE=$hourswest	;;*)  	TIMEZONE="$hourswest dst ${dst}" 	;;esac## Because the timezone in the kernel is in the east of USA,# time needs to be adjusted.# tt=`expr $hourswest : '-\(.*\)' '|' $hourswest`tttt=`expr $tt '*' 60`case $hourswest in0 )  	tttt=0000		;;1 ) 	tttt=00${tttt}		;;-1 ) 	tttt=-00${tttt}	;;-* )	tttt=-0${tttt}		;;* )	tttt=0${tttt}		;;esac# In case timezone and dst do not match tnc=`date +%y\%m\%d\%H\%M.%S`date $tnc-$tttt$geog >/dev/null 2>&1 echo "${LL}The current system date and time is `date`"################################################################### Edit crontab, rc, and hosts files##################################################################ed /usr/lib/crontab <<xxEOFxx  1>/dev/null	/#BIGVAX/d	.,/#END/d	/#MICROVAX/d	.,/#END/s/^#//g	d	w	qxxEOFxxed /etc/rc <<xxEOFxx  1>/dev/null	/#MICROVAX/d	.,/#END/s/^#//g	d	w	qxxEOFxxed  /etc/hosts <<xxxEOFxxx 1>/dev/null	/localhost/s/\$/ $SYSNAME/p	w	qxxxEOFxxx################################################################### Check for Low_Swap_Warning file and print it#[ -f /etc/fis/low_swap_warning ] &&{        echo "*************************************************************************"        cat /etc/fis/low_swap_warning        echo "*************************************************************************"}################################################################### Tell the user how to log into the system#echo "###################################################################								 ##	The system will now automatically configure the 	 ##	ULTRIX  Operating  System, build a  kernel, and 	 ##	then reboot.  This will take  approximately  15		 ##	minutes, depending on the processor type.		 ##								 ##	When  the login prompt appears after the system		 ##	has rebooted, use 'root' as the  login name and 	 ##	the SUPERUSER  password that was entered during		 ##	this procedure, to log into the system.			 ##								 ###################################################################"################################################################### Perform setld -c install for each subset .lk file##################################################################echo "${LL}*** PERFORMING SUBSET CONFIGURATION *** "sh5 /etc/fis/DEP_ORD################################################################### Create and Edit A Customized Config File##################################################################/etc/sizer -n ${CONFIGNAME} -t "$TIMEZONE" >/dev/null#  the following /tmp is the result of sizer - do not move to /usr/tmp/bin/ed /tmp/$CONFIGNAME <<xxEOFxx 1>/dev/null/^options/.r /etc/fis/options.mips/^pseudo/.r /etc/fis/pseudo.mipswqxxEOFxx#  the following /tmp is the result of sizer - do not move to /usr/tmpcp /tmp/$CONFIGNAME $CONFIGPATH/$CONFIGNAME################################################################### Build the Customized Kernel##################################################################echo "${LL}${LL}*** PERFORMING SYSTEM CONFIGURATION *** "cd $CONFIGPATH/etc/config $CONFIGNAME 2>&1 > /tmp/config$$case $? in0 )	rm /tmp/config$$	if cd $KERNELPATH/$CONFIGNAME	then 		Ticker		make clean 2>&1 > /dev/null 		if (make depend vmunix 2>&1) > errs		then			# successful configuration			STAT=0			cd /dev			rm -f /dev/*mt*			(sh -v /tmp/${CONFIGNAME}.devs 2>&1) > MAKEDEV.log			mv $KERNELPATH/$CONFIGNAME/vmunix /vmunix		else			STAT=2			echo "There were errors while building the custom kernel for $SYSNAME.Check  $KERNELPATH/$CONFIGNAME/errs  for a record of the errors.The system has been booted using the generic  ULTRIX kernel, whichmeans the system may not have  all its devices,  or all its memoryconfigured.  It is  highly recommended  that  the  reason  for the kernel rebuild failure be corrected and then the fisinit procedureperformed again, so  that  the  custom  configured kernel for thismachine can be built.${LL}"			echo "There were errors while building the custom kernel for $SYSNAME.Check  $KERNELPATH/$CONFIGNAME/errs  for a record of the errors.The System has been booted using the generic  ULTRIX kernel, whichmeans the system may not have  all its devices,  or all its memoryconfigured.  It is  highly recommended  that  the  reason  for the kernel rebuild failure be corrected and then the fisinit procedureperformed again, so  that  the  custom  configured kernel for thismachine can be built.${LL} " >> /etc/motd		fi		Unticker	fi	;;* )	STAT=3	echo "Configuration file has errors.The system has been booted using the generic ULTRIX kernel, whichmeans the system may not have all its devices, or all its memoryconfigured.  It is highly recommended that the reason for the configuration file failure be corrected and then the fisinit procedureperformed again, so that the custom configured kernel for thismachine can be built.${LL}"	echo "Configuration file has errors.The system has been booted using the generic ULTRIX kernel, whichmeans the system may not have all its devices, or all its memoryconfigured.  It is highly recommended that the reason for the configuration file failure be corrected and then the fisinit procedureperformed again, so that the custom configured kernel for thismachine can be built.${LL} " >> /etc/motd	rm /tmp/config$$		;;esac################################################################### Move fisinit so we only run this once, then Reboot the kernel##################################################################case $STAT in0 )	mv /etc/fis/fisinit /etc/fis/.fisinit	echo; echo	/etc/reboot	;;* )	exit $STAT	;;esac

⌨️ 快捷键说明

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