summaryrefslogtreecommitdiffstats
path: root/sh/example6
blob: 7cb4467502fd58f763cb77d72acb98858c2ad8f3 (plain)
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
#!/bin/bash -
# Copyright (C) 2009-2010 Red Hat Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

set -e

# Hypothetical viostor installation in a W2K3 system registry.

if [ $# -ne 2 ]; then
    echo "$0 system system.new"
    exit 1
fi

d=`dirname $0`

$d/hivexsh -w <<EOF
load $1

cd \ControlSet001\Control\CriticalDeviceDatabase

add pci#ven_1af4&dev_1001&subsys_00000000
cd pci#ven_1af4&dev_1001&subsys_00000000
setval 2
Service
string:viostor
ClassGUID
string:{4D36E97B-E325-11CE-BFC1-08002BE10318}
cd ..

add pci#ven_1af4&dev_1001&subsys_00020000
cd pci#ven_1af4&dev_1001&subsys_00020000
setval 2
Service
string:viostor
ClassGUID
string:{4D36E97B-E325-11CE-BFC1-08002BE10318}
cd ..

add pci#ven_1af4&dev_1001&subsys_00021af4
cd pci#ven_1af4&dev_1001&subsys_00021af4
setval 2
Service
string:viostor
ClassGUID
string:{4D36E97B-E325-11CE-BFC1-08002BE10318}

cd \ControlSet001\Services
add viostor
cd viostor
setval 6
Type
dword:0x00000001
Start
dword:0x00000000
Group
string:SCSI miniport
ErrorControl
dword:0x00000001
ImagePath
string:system32\drivers\viostor.sys
Tag
dword:0x00000021

add Parameters
cd Parameters
setval 1
BusType
dword:0x00000001

add MaxTransferSize
cd MaxTransferSize
setval 3
ParamDesc
string:Maximum Transfer Size
type
string:enum
default
string:0

add enum
cd enum
setval 3
0
string:64  KB
1
string:128 KB
2
string:256 KB
cd ..

cd ..

add PnpInterface
cd PnpInterface
setval 1
5
dword:0x00000001
cd ..

cd ..

add Enum
cd Enum
setval 3
0
string:PCI\VEN_1AF4&DEV_1001&SUBSYS_00021AF4&REV_00\3&13c0b0c5&0&20
Count
dword:0x00000001
NextInstance
dword:0x00000001

commit $2
EOF