Unixpc DWB and UA stuff

Rusty Hodge rusty at hodge.UUCP
Sun Jul 31 12:55:42 AEST 1988


In article <546 at proxftl.UUCP>, aaron at proxftl.UUCP (Aaron Zimmerman) writes:
> In article <933 at hodge.UUCP>, rusty at hodge.UUCP (Rusty Hodge) writes:
> >
> > Here is what I have done to my /etc/rc file.  I keep a copy of the
> > original for just incase AT&T sends me a update :->
My /etc/rc file goes here
> 
> Well, his rc looked better than the one I had running, so I replaced the old
> with his (actually I still have the old as rc.old, but it doesn't matter
> because):
> 
> 	My system won't boot now.
> 
> Will someone please tell me what I can do so that it will boot? (I bought my

Try booting from the floppy....

> > I hope this was of some educational value.
> 
> Yeah, I learned the hard way not to trust software off the net.
WELL, EXCUSE MEEEEE! - Steve Martin

The only thing that I can imaging happening is that I edited out some stupid
comments.  Maybe I induced a typo.  Here is my ORIGINAL, unedited, with very
silly comments in a few places and some my-system specific things that you
can figure out what to remove:


if [ -z "$1" ]
then
	cd /etc/lddrv
	./mkifile /unix unix.syma
	cmp -s unix.sym unix.syma	
	if [ $? != 0 ] 
	then
		mv unix.syma unix.sym	
		rm -f wind		
	fi
	sync
	> /etc/drvtab
	sync
	if [ ! "`grep wdinit unix.sym`" ]
	then
		./lddrv -av wind > /tmp/.winload 2>/tmp/.winload  || (
 			echo Window driver did not load because: > /dev/console
			cat /tmp/.winload > /dev/console
 			exec /bin/sh < /dev/console > /dev/console 2>&1 )
	fi
 	exec /bin/sh /etc/rc WINDOWED < /dev/window > /dev/w1 2>&1
fi

trap "" 2
rm -f /etc/.extra

/etc/.fontload  

echo "The 3B1 is coming up.  Please wait..."
mpid=$!

TZ=`cat /etc/TZ`;export TZ
date
date -
DATE=`date '+%a %h %d, 19%y  %r' `
echo $DATE
echo TZ=$TZ
PATH=:/bin:/usr/bin:/etc
TERM=s4

export PATH TERM

stty sane

# PERFORM THE FILE SYSTEM CHECKS WITH AUTO-REBOOT IF SYSTEM WAS REPAIRED
echo "Performing fsck..."
if [ ! -f /etc/LCK.fsck ]
then
	echo "Running first-time automatic fsck -p."
	touch /etc/LCK.fsck
	/etc/fsck -p
	echo "Automatic fsck -p finished."
fi

rm -f /etc/LCK.fsck

if [ -f /etc/FSCK-FORCE ]
then
	echo "Forced fsck being attempted.  THIS IS INTERACTIVE."
	echo "PAY ATTENTION STUPID.  THIS IS SERIOUS.  YOU COULD DIE."
 	rm -f /etc/FSCK-FORCE
	/etc/fsck
	echo "Forced fsck finished.  You can go back to sleep now." 
fi

cat /usr/adm/drv.log >> /etc/old.drv.log
rm -f /usr/adm/drv.log

if [ -x /etc/.drvload ]
then
	echo "Loading drivers..."
	kill $mpid > /dev/null 2>&1
	mpid=$!
	/etc/.drvload
fi


if [ -s /etc/.version ]
then
	setuname -v `cat /etc/.version`
fi
# was fi[

cat >  /etc/.extra <<END
xxx
END

# Kill off last forked off window

kill $mpid

if [ ! -r /etc/.installdate ]
then
	/etc/.firstrc
fi

TZ=`cat /etc/TZ`

# IF USER CHANGED THE TIME ZONE AND REBOOTED THE SYSTEM THEN .INSTALLDATE
# WILL BE EMPTY AT THIS POINT. WE MUST CALL .FIRSTRC ONE MORE TIME TO 
# COMPLETE THE SCRIPT

if [ ! -s /etc/.installdate ]
then
	/etc/.firstrc
fi

echo "Setting up screen..."
kill $mpid
mpid=$!

# THERE ARE SEVERAL FILES WHICH START VARIOUS DAEMONS AND PERFORM 
#  ASSORTED TASKS.  IF THEY ARE PRESENT AND EXECUTABLE, RUN THEM!
echo "Starting Daemons..."
# /etc/namesys executes either setuname or slaninit depending on whether
# STARLAN is installed

for i in .cleanup .cronstart .lpstartsched .syncstart namesys .phinit .modeminit ph

do
	echo "Starting $i"
	/etc/$i 
done

# The phone manager should be started.  You can then kill it... but some things 
# need to be initialized by it.

	/etc/cron &

# any additional daemons (such as slan initialization)
# can be put in /etc/daemons, and will be executed without
# changing /etc/rc.  Each should be run in the background.

if [ -d /etc/daemons ]
then
	DAEMONS=`ls /etc/daemons/*`
	if [ $? != 0 ] ; then DAEMONS=""; fi
	for i in $DAEMONS
	do
	echo $i
		if [ -x $i ]
		then	nohup $i > /dev/null 2>&1 &
		fi
	done
fi

# If a screen time out has been selected, then set it.

if [ -s /etc/.blanktime ]
then
	scrset `cat /etc/.blanktime`
fi
# Clean up pnet files
rm -f /usr/spool/uucp/LCK.* /usr/lib/pnet/pnet.who
rm -f /usr/lib/pnet/talk/talk?.who /usr/lib/pnet/talk/talk.*
rm -f /usr/spool/uucp/STST*

# Kill last window
kill $mpid
-- 

Rusty Hodge, HCR Inc, 1588 N. Batavia St. Orange, CA 92667      (714) 974-6300
rusty at hodge.cts.com [uunet vdelta crash]!hodge!rusty        FAX (714) 921-8038



More information about the Unix-pc.general mailing list