918-git-images-111dconfigfileconfigure-oglivegit-imageslgromero-new-oglivemainmaint-cronmount-efivarfsmultivmmultivm-ogboot-installerogClonningEngineogboot-installer-jenkinsoglive-ipv6test-python-scriptsticket-301ticket-50ticket-50-oldticket-577ticket-585ticket-611ticket-612ticket-693ticket-700ubu24tplunification2use-local-agent-oglivevarios-instalacionwebconsole3
Line | |
---|
1 | #!/bin/bash |
---|
2 | |
---|
3 | #/** |
---|
4 | # BuildToOrder |
---|
5 | #@brief Script de ejemplo para realizar una configuracion del sistema operativo antes de generar imagen o restaurado. |
---|
6 | #@brief Activa el uso de los contralodres de disco más usados en windows 7. |
---|
7 | #@brief (puede usarse como complemento para el programa de creación de imágenes o de restauración). |
---|
8 | #@param 1 disco |
---|
9 | #@param 2 particion |
---|
10 | #@return |
---|
11 | #@TODO |
---|
12 | #@exception |
---|
13 | #@version 1.0.4 - Discos ide + SATA. |
---|
14 | #@author |
---|
15 | #@date 2012-10-05 |
---|
16 | |
---|
17 | |
---|
18 | #Control de parametros. |
---|
19 | PROG="$(basename $0)" |
---|
20 | if [ $# -ne 2 ]; then |
---|
21 | ogRaiseError $OG_ERR_FORMAT "Formato: $PROG ndisco nparticion" |
---|
22 | exit $? |
---|
23 | fi |
---|
24 | |
---|
25 | |
---|
26 | MNTDIR=$(ogMount $1 $2) |
---|
27 | |
---|
28 | # filtro Tipo de sistema opertativo. |
---|
29 | OSTYPE="$(ogGetOsType $1 $2)" |
---|
30 | |
---|
31 | |
---|
32 | case "$OSTYPE" in |
---|
33 | Windows) |
---|
34 | echo "Filtro versión de sistema operativo windows." |
---|
35 | TYPE=$(ogGetOsVersion $1 $2) |
---|
36 | case "$TYPE" in |
---|
37 | *Windows\ XP) |
---|
38 | echo "Versión de sistema operativo Windows XP no soportado" |
---|
39 | ;; |
---|
40 | *Windows\ 7*) |
---|
41 | echo "Windows 7" |
---|
42 | ogSetRegistryValue $MNTDIR SYSTEM '\ControlSet001\services\intelide\Start' '0' && echo "activado intelide" |
---|
43 | ogSetRegistryValue $MNTDIR SYSTEM '\ControlSet002\services\intelide\Start' '0' |
---|
44 | |
---|
45 | ogSetRegistryValue $MNTDIR SYSTEM '\ControlSet001\services\pciide\Start' '0' && echo "activado pciide" |
---|
46 | ogSetRegistryValue $MNTDIR SYSTEM '\ControlSet002\services\pciide\Start' '0' |
---|
47 | |
---|
48 | ogSetRegistryValue $MNTDIR SYSTEM '\ControlSet001\services\msahci\Start' '0' && echo "activado msahci" |
---|
49 | ogSetRegistryValue $MNTDIR SYSTEM '\ControlSet002\services\msahci\Start' '0' |
---|
50 | |
---|
51 | ogSetRegistryValue $MNTDIR SYSTEM '\ControlSet001\services\iaStorV\Start' '0' && echo "activado iaStorV" |
---|
52 | ogSetRegistryValue $MNTDIR SYSTEM '\ControlSet002\services\iaStorV\Start' '0' |
---|
53 | |
---|
54 | ogSetRegistryValue $MNTDIR SYSTEM '\ControlSet001\services\iaStor\Start' '0' && echo "activado iaStor" |
---|
55 | ogSetRegistryValue $MNTDIR SYSTEM '\ControlSet002\services\iaStor\Start' '0' |
---|
56 | ;; |
---|
57 | esac |
---|
58 | ;; |
---|
59 | Linux) |
---|
60 | echo "Versión de sistema operativo linux no soportado" |
---|
61 | ;; |
---|
62 | *) |
---|
63 | echo "Sistema operativo no soportado" |
---|
64 | ;; |
---|
65 | esac |
---|
Note: See
TracBrowser
for help on using the repository browser.