diff options
author | Irina Gómez <irinagomez@us.es> | 2020-05-04 12:45:08 +0200 |
---|---|---|
committer | Irina Gómez <irinagomez@us.es> | 2020-05-04 12:45:08 +0200 |
commit | 41d66ae82bd0ba8d27de77dbd76c484f7c042e1c (patch) | |
tree | 9e9619bd94e152291de9a2167b9615b178265651 /client/shared | |
parent | 227093f652abceb551facb1147cacb6f46d25fb8 (diff) |
#780 buildToOrder works with Windows 8 and Windows 10. When no key exists, it is created.
Diffstat (limited to 'client/shared')
-rwxr-xr-x | client/shared/scripts/buildToOrder | 48 |
1 files changed, 29 insertions, 19 deletions
diff --git a/client/shared/scripts/buildToOrder b/client/shared/scripts/buildToOrder index ef682abf..5bbc9380 100755 --- a/client/shared/scripts/buildToOrder +++ b/client/shared/scripts/buildToOrder @@ -13,6 +13,8 @@ #@version 1.0.4 - Discos ide + SATA. #@author #@date 2012-10-05 +#@version 1.1.1b - Funciona para Windows8 y Windows 10. Si la clave no existe (tiene valor vacío) se crea. +#@date 2020-05-04 #Control de parametros. @@ -36,29 +38,37 @@ case "$OSTYPE" in case "$TYPE" in *Windows\ XP) echo "Versión de sistema operativo Windows XP no soportado" + exit ;; *Windows\ 7*) - echo "Windows 7" - ogSetRegistryValue $MNTDIR SYSTEM '\ControlSet001\services\intelide\Start' '0' && echo "activado intelide" - ogSetRegistryValue $MNTDIR SYSTEM '\ControlSet002\services\intelide\Start' '0' - - ogSetRegistryValue $MNTDIR SYSTEM '\ControlSet001\services\pciide\Start' '0' && echo "activado pciide" - ogSetRegistryValue $MNTDIR SYSTEM '\ControlSet002\services\pciide\Start' '0' - - ogSetRegistryValue $MNTDIR SYSTEM '\ControlSet001\services\msahci\Start' '0' && echo "activado msahci" - ogSetRegistryValue $MNTDIR SYSTEM '\ControlSet002\services\msahci\Start' '0' - - ogSetRegistryValue $MNTDIR SYSTEM '\ControlSet001\services\iaStorV\Start' '0' && echo "activado iaStorV" - ogSetRegistryValue $MNTDIR SYSTEM '\ControlSet002\services\iaStorV\Start' '0' - - ogSetRegistryValue $MNTDIR SYSTEM '\ControlSet001\services\iaStor\Start' '0' && echo "activado iaStor" - ogSetRegistryValue $MNTDIR SYSTEM '\ControlSet002\services\iaStor\Start' '0' - - ogSetRegistryValue $MNTDIR SYSTEM '\ControlSet001\services\LSI_SAS\Start' '0' && echo "activado iaStor" - ogSetRegistryValue $MNTDIR SYSTEM '\ControlSet002\services\LSI_SAS\Start' '0' + # Claves a modificar + KEYS="intelide pciide msahci iaStorV iaStor LSI_SAS" ;; - esac + *Windows\ *8*|*10*) + # Claves a modificar + KEYS="intelide pciide storahci iaStorV iaStorAC iaStorAVC LSI_SAS" + ;; + esac + + echo "$TYPE" + CONTROLSET="ControlSet001 ControlSet002" + for C in $CONTROLSET; + # Si no existe la rama de registro continuo a la siguiente. + [ "$(ogListRegistryKeys $MNTDIR SYSTEM '\'${C})" == "" ] && continue + + for K in $KEYS; do + FULLK='\'$C'\Services\'$K'\Start' + VALUE=$(ogGetRegistryValue $MNTDIR SYSTEM "$FULLK") + # Si el valor está vacío la creo. + if [ "$VALUE" == "" ]; then + ogDeleteRegistryValue $MNTDIR SYSTEM "$FULLK" + ogAddRegistryValue $MNTDIR SYSTEM "$FULLK" DWORD + fi + ogSetRegistryValue $MNTDIR SYSTEM "$FULLK" '0' + echo " * $C $K enabled" + done + done ;; Linux) echo "Versión de Sistema Operativo GNU/Linux no soportado" |