-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlib-activate-w311fwg-networkdriver-on-qemu.sh
109 lines (106 loc) · 2.67 KB
/
lib-activate-w311fwg-networkdriver-on-qemu.sh
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
. lib-bogomips-sleep.sh
. lib-qemu.sh
activate-w311fwg-networkdriver-on-qemu() {
echo "running windows..."
qemu-send-line-de "c:\\windows\\win.com"
bogomips-sleep 10
echo "confirming message about missing network driver..."
qemu-send-key "ret"
bogomips-sleep 6
echo "running windows setup..."
qemu-send-key "alt-f"
qemu-send-key "r"
qemu-send-line-de "c:\\windows\\winsetup.exe"
bogomips-sleep 1
echo "running network setup..."
qemu-send-key "alt-o"
qemu-send-key "n"
bogomips-sleep 1
echo "installing network driver..."
qemu-send-key "alt-d"
bogomips-sleep 1
case "${CONFIG_NETWORK}" in
"rtl8029")
echo "choosing adapter rtl8029..."
qemu-send-key "alt-a"
qemu-send-key "ret"
bogomips-sleep 1
qemu-send-line-de "c:\\drivers\\win311\\rtl8029\\wfw311"
bogomips-sleep 1
qemu-send-key "ret"
bogomips-sleep 1
;;
"amdpcnet")
echo "choosing adapter amd pcnet..."
qemu-send-key "alt-a"
qemu-send-key "ret"
bogomips-sleep 1
qemu-send-line-de "c:\\drivers\\win311\\amdpcnet"
bogomips-sleep 1
qemu-send-key "ret"
bogomips-sleep 1
echo "confirming base i/o port..."
qemu-send-key "ret"
echo "setting interrupt..."
qemu-send-key "9"
qemu-send-key "ret"
echo "confirming dma channel..."
qemu-send-key "ret"
echo "confirming twisted pair interface..."
qemu-send-key "ret"
echo "confirming LED0-LED3 function..."
qemu-send-key "ret"
qemu-send-key "ret"
qemu-send-key "ret"
qemu-send-key "ret"
;;
*)
echo "invalid value specified NETWORK=\"${CONFIG_NETWORK}\"" 1>&2
;;
esac
echo "installing tcpip driver..."
qemu-send-key "alt-p"
bogomips-sleep 1
qemu-send-key "ret"
bogomips-sleep 1
qemu-send-line-de "c:\\drivers\\win311\\tcpip"
qemu-send-key "ret"
bogomips-sleep 8
echo "closing network drivers dialog..."
qemu-send-key "alt-l"
bogomips-sleep 1
echo "closing network setup..."
qemu-send-key "ret"
bogomips-sleep 7
echo "enabling dhcp..."
qemu-send-key "alt-e"
bogomips-sleep 1
echo "confirming enabling of dhcp..."
qemu-send-key "ret"
echo "closing TCP/IP configuration dialog..."
qemu-send-key "ret"
bogomips-sleep 1
echo "confirming changes of system.ini..."
qemu-send-key "ret"
bogomips-sleep 1
echo "rebooting..."
qemu-send-key "ret"
bogomips-sleep 20
echo "running windows..."
qemu-send-line-de "c:\\windows\\win.com"
bogomips-sleep 20
echo "entering password..."
qemu-send-line-de "${CONFIG_PASSWORD}"
bogomips-sleep 1
echo "confirming creation of password-list file..."
qemu-send-key "z"
bogomips-sleep 1
echo "confirming password..."
qemu-send-line-de "${CONFIG_PASSWORD}"
bogomips-sleep 1
echo "closing windows..."
qemu-send-key "alt-f4"
bogomips-sleep 1
qemu-send-key "ret"
bogomips-sleep 10
}