-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlib-activate-w311fwg-networklogon-on-qemu.sh
53 lines (52 loc) · 1.33 KB
/
lib-activate-w311fwg-networklogon-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
. lib-bogomips-sleep.sh
. lib-qemu.sh
activate-w311fwg-networklogon-on-qemu() {
echo "running windows..."
qemu-send-line-de "c:\\windows\\win.com"
bogomips-sleep 10
echo "runnung setup..."
qemu-send-key "alt-f"
qemu-send-key "r"
qemu-send-line-de "c:\\windows\\winsetup.exe"
bogomips-sleep 1
qemu-send-key "alt-o"
qemu-send-key "n"
bogomips-sleep 1
echo "open networks..."
qemu-send-key "alt-n"
bogomips-sleep 1
echo "choose Microsoft Windows Network..."
qemu-send-key "alt-i"
qemu-send-key "ret"
qemu-send-key "ret"
qemu-send-key "esc"
qemu-send-key "z"
bogomips-sleep 1
echo "entering user name..."
qemu-send-string-de "${CONFIG_USERNAME}"
qemu-send-key "tab"
echo "entering workgroup name..."
qemu-send-string-de "${CONFIG_WORKGROUP}"
qemu-send-key "tab"
echo "entering computer name..."
qemu-send-string-de "${CONFIG_COMPUTERNAME}"
qemu-send-key "ret"
bogomips-sleep 10
echo "confirming changes to autoexec.bat and config.sys..."
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 10
echo "confirming message about missing network driver..."
qemu-send-key "ret"
bogomips-sleep 6
echo "closing windows..."
qemu-send-key "alt-f4"
bogomips-sleep 1
qemu-send-key "ret"
bogomips-sleep 5
}