-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall.tcl
73 lines (64 loc) · 1.08 KB
/
install.tcl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
spawn vax780 tboot.ini
expect "Overwrite last track"
send "y\r"
expect "HALT"
expect "="
send "mkfs\r"
expect "file sys size"
send "7942\r"
expect "file system"
send "hp(0,0)\r"
expect "="
send "restor\r"
expect "Tape"
send "ht(0,1)\r"
expect "Disk"
send "hp(0,0)\r"
expect "Last chance before scribbling on disk"
send "\r"
expect "End of tape"
expect "="
send "boot\r"
expect ":"
send "hp(0,0)vmunix\r"
expect "root device"
send "hp0\r"
expect "#"
send "fsck /dev/rhp0a\r"
expect "#"
send "mkfs /dev/hp0g 145673\r"
expect "#"
send "cd /dev\r"
expect "#"
send "MAKE ht0\r"
expect "#"
send "cd /\r"
expect "#"
send "/etc/mount /dev/hp0g /usr\r"
expect "#"
send "cd /usr\r"
expect "#"
send "mt rew\r"
expect "#"
send "mt fsf 2\r"
expect "#"
send "tar xpb 20\r"
expect "#"
send "mt rew\r"
expect "#"
send "mt fsf 3\r"
expect "#"
send "cd /usr/src\r"
expect "#"
send "tar xpb 20\r"
expect "#"
send "dd if=/usr/mdec/uboot of=/dev/rhp0a bs=1b count=1\r"
expect "#"
send "cp /etc/fstab.rp06 /etc/fstab\r"
expect "#"
send "chmod 755 /usr\r"
expect "#"
send "reboot\r"
expect "sim>"
send "q\r"
exit 0