-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlib-activate-w311fwg-settings-on-qemu.sh
64 lines (56 loc) · 1.15 KB
/
lib-activate-w311fwg-settings-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
#!/bin/bash
. lib-bogomips-sleep.sh
. lib-qemu.sh
activate-w311fwg-settings-on-qemu() {
isoimage="$1"
if [ $# -lt 1 ]
then
activate-w311fwg-settings-on-qemu-usage
return
fi
if ! [ -f "$1" ]
then
echo "file not found: $1" 1>&2
activate-w311fwg-settings-on-qemu-usage
return
fi
qemu-change-cdrom "$isoimage"
echo "running windows setup..."
qemu-send-line-de "cd \\windows"
qemu-send-line-de "setup.exe"
bogomips-sleep 1
echo "activating svga driver..."
for ((i=0;i<6;i++))
do
qemu-send-key "up"
done
qemu-send-key "ret"
bogomips-sleep 1
for ((i=0;i<3;i++))
do
qemu-send-key "down"
done
qemu-send-key "ret"
echo "activating windows apm driver..."
for ((i=0;i<7;i++))
do
qemu-send-key "up"
done
qemu-send-key "ret"
bogomips-sleep 1
for ((i=0;i<14;i++))
do
qemu-send-key "down"
done
qemu-send-key "ret"
qemu-send-key "ret"
qemu-send-key "ret"
qemu-send-key "ret"
bogomips-sleep 5
echo "activating win.com..."
qemu-send-line-de "echo C:\\WINDOWS\\WIN.COM >> c:\\autoexec.bat"
bogomips-sleep 1
}
activate-w311fwg-settings-on-qemu-usage() {
echo -e "usage:\n\tactivate-w311fwg-settings-on-qemu <WinInstallISO>" 1>&2
}