Commit | Line | Data |
---|---|---|
9a569d65 | 1 | # $Id: cpio.rc,v 1.1 1994/02/21 21:51:53 rgrimes Exp $ |
635dcafb RG |
2 | # |
3 | ||
4 | stty status '^T' | |
5 | trap : 2 | |
6 | trap : 3 | |
7 | PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/distbin; export PATH | |
8 | if [ -e /fastboot ] | |
9 | then | |
10 | echo Fast boot ... skipping disk checks | |
11 | else | |
12 | echo Automatic reboot in progress... | |
13 | fsck -p | |
14 | case $? in | |
15 | 0) | |
16 | ;; | |
17 | 2) | |
18 | exit 1 | |
19 | ;; | |
20 | 4) | |
21 | echo; echo README README README README README README README | |
22 | echo | |
23 | echo "NOTE: The above errors are expected if this is the" | |
24 | echo "first time you have booted from the hard disk after" | |
25 | echo "completing the floppy install"; echo | |
26 | echo "Automatic file system check changed the root file system" | |
27 | echo "The system must halt for these corrections to take effect" | |
28 | echo | |
29 | reboot | |
30 | echo "reboot failed... help!" | |
31 | exit 1 | |
32 | ;; | |
33 | 8) | |
34 | echo "Automatic file system check failed... help!" | |
35 | exit 1 | |
36 | ;; | |
37 | 12) | |
38 | echo "Reboot interrupted" | |
39 | exit 1 | |
40 | ;; | |
41 | 130) | |
42 | exit 1 | |
43 | ;; | |
44 | *) | |
45 | echo "Unknown error in reboot" | |
46 | exit 1 | |
47 | ;; | |
48 | esac | |
49 | fi | |
50 | ||
51 | trap 2 | |
52 | trap "echo 'Reboot interrupted'; exit 1" 3 | |
53 | umount -a >/dev/null 2>&1 | |
54 | mount -a -t nonfs | |
55 | rm -f /fastboot | |
56 | (cd /var/run && { rm -rf -- *; cp /dev/null utmp; chmod 644 utmp; }) | |
57 | ||
58 | OPSYSTEM=FreeBSD | |
59 | RELEASE="1.1" | |
60 | echo "${OPSYSTEM} Base System Release ${RELEASE}" | |
61 | echo "\a" | |
62 | echo "Congratulations, you've got ${OPSYSTEM} on the hard disk!" | |
63 | echo | |
64 | echo "Press the return key for more installation instructions" | |
65 | read junkit | |
66 | echo | |
67 | echo "To finish installation:" | |
68 | echo "Pick a temporary directory by running set_tmp_dir. Make sure it's" | |
69 | echo "in a place with lots of space, probably under /usr." | |
70 | echo "Then, load the remaining distribution files into that temporary" | |
71 | echo "directory by issuing one of the following commands:" | |
72 | echo | |
9a569d65 | 73 | echo " load_dos load_fd load_qic_tape load_scsi_tape" |
635dcafb RG |
74 | echo |
75 | echo "or by fetching the files with ftp (see the installation notes for" | |
76 | echo "information on how to do that)." | |
77 | echo | |
78 | echo "Once this is complete, extract the distribution files by issuing the" | |
79 | echo "command 'extract <distribution>' where <distribution> is the base name" | |
80 | echo "of the distribution files, e.g. 'base10'." | |
81 | echo | |
82 | echo "Once all of the filesets you wish to install have been extracted," | |
83 | echo "enter the command 'configure' to finish setting up the system" | |
84 | echo " " | |
85 | echo "If you should wish to uninstall ${OPSYSTEM}, delete the partition by using the" | |
86 | echo "DOS 5 FDISK program. If installed on the entire drive, use the FDISK/MBR" | |
87 | echo "to remove the ${OPSYSTEM} bootstrap from the drive." | |
88 | echo 'erase ^?, werase ^H, kill ^U, intr ^C' | |
89 | stty newcrt werase \b intr \ 3 kill \15 erase \7f 9600 | |
90 | umask 0 | |
91 | echo ". /magic" >>/.profile | |
92 | exit 1 |