: generate boot-up tape
: current copy of root must be in "/usr/root"
chdir /usr/mdec
tp rm1 * /deadstart /usr/root
tp tvm1 >bootout
date >>bootout
echo 'HOW TO RELOAD SYSTEM FROM THIS TAPE:' >>bootout
echo '' >>bootout
echo '1) mount this tape on TU16 drive unit 0' >>bootout
echo '' >>bootout
echo '2) Init unibus by pressing START with processor HALTed' >>bootout
echo '' >>bootout
echo '2.5) DEPOSIT a 1300 (octal) into location 17772472 with switches' >>bootout
echo '' >>bootout
echo '3) DEPOSIT a 71 (octal) into location 17772440 with '>>bootout
echo '   front panel switches. The tape should move a little.'>>bootout
echo '' >>bootout
echo '4) LOAD ADDR 0, then START.  The console tty should print "="' >>bootout
echo '' >>bootout
echo '5) Type "hthpc" on the console followed by a RETURN.' >>bootout
echo '   The tape should move, and the tty should respond with'>>bootout
echo '   "disk cylinder offset?"  type "192" and RETURN to this question.'>>bootout
echo '   The tty should ask "disk sector offset? ", type a "0" and RETURN.'>>bootout
echo '   The tty should ask "tape offset? ", type in the number'>>bootout
echo '   obtained from the "tapa" column for file "/usr/root" on this'>>bootout
echo '   listing.'>>bootout
echo '   The tty should ask "count? ", type "5000" and RETURN.'>>bootout
echo '   The tape should move for several minutes.'>>bootout
echo ''>>bootout
echo '6) After the tape stops, manually rewind it and repeat steps 3 to 4'>>bootout
echo '7) When you get an "=" set the front panel switches to 00173030'>>bootout
echo '   and type "/deadstart/unix" and RETURN.  If the hardware is ok'>>bootout
echo '   the system should come up in single user UNIX.'>>bootout
echo ''>>bootout
echo '8) Fix up or reload the file systems.  More details in the'>>bootout
echo '   "operators bible".'>>bootout
opr -lp bootout
rm bootout
echo boot tape done
