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
Rev | Line | |
---|
[da54de8] | 1 | #!/bin/bash |
---|
| 2 | |
---|
| 3 | #/** |
---|
| 4 | # BuildToOrder |
---|
[d475799] | 5 | #@brief Script de ejemplo para realizar una configuracion del sistema operativo antes de generar imagen o de restaurado. |
---|
[da54de8] | 6 | #@brief Activa el uso de los contralodres de disco más usados en windows 7. |
---|
[a86c559] | 7 | #@brief (puede usarse como complemento para el programa de creación de imágenes o de restauración). |
---|
[da54de8] | 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 | |
---|
[b8b1559] | 28 | # filtro Tipo de sistema operativo. |
---|
[da54de8] | 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' |
---|
[3f0d6d8] | 56 | |
---|
| 57 | ogSetRegistryValue $MNTDIR SYSTEM '\ControlSet001\services\LSI_SAS\Start' '0' && echo "activado iaStor" |
---|
| 58 | ogSetRegistryValue $MNTDIR SYSTEM '\ControlSet002\services\LSI_SAS\Start' '0' |
---|
| 59 | |
---|
[da54de8] | 60 | ;; |
---|
| 61 | esac |
---|
| 62 | ;; |
---|
| 63 | Linux) |
---|
[c1d2964] | 64 | echo "Versión de Sistema Operativo GNU/Linux no soportado" |
---|
[da54de8] | 65 | ;; |
---|
| 66 | *) |
---|
[c1d2964] | 67 | echo "Sistema Operativo no soportado" |
---|
[da54de8] | 68 | ;; |
---|
| 69 | esac |
---|
Note: See
TracBrowser
for help on using the repository browser.