summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xclient/engine/FileSystem.lib2
-rwxr-xr-xclient/engine/PostConf.lib5
2 files changed, 5 insertions, 2 deletions
diff --git a/client/engine/FileSystem.lib b/client/engine/FileSystem.lib
index 10930e01..086c1019 100755
--- a/client/engine/FileSystem.lib
+++ b/client/engine/FileSystem.lib
@@ -966,7 +966,7 @@ DISK="$(ogDiskToDev $1)" || return $?
for ((PART=1; PART<=$(ogGetPartitionsNumber $1); PART++)); do
case "$(ogGetFsType $1 $PART)" in
CACHE) ;;
- *) ogUnmount $1 $PART ;;
+ *) ogUnmount $1 $PART 2>/dev/null ;;
esac
done
}
diff --git a/client/engine/PostConf.lib b/client/engine/PostConf.lib
index b8d4b8df..647423a3 100755
--- a/client/engine/PostConf.lib
+++ b/client/engine/PostConf.lib
@@ -253,9 +253,12 @@ REG ADD HKLM\System\Setup /v SystemSetupInProgress /t REG_DWORD /d 0 /f
REG ADD HKLM\System\Setup /v CmdLine /t REG_SZ /d "" /f
EOF
-# Creamos las claves de registro necesarias para que se haga la ejecucion del .cmd al aranque
+# Crear los valores de registro necesarios para que se haga la ejecuciĆ³n del .cmd al aranque.
ogSetRegistryValue "$MNTDIR" SYSTEM "\Setup\SystemSetupInProgress" 1
ogSetRegistryValue "$MNTDIR" SYSTEM "\Setup\SetupType" 4
+# Borrar y crear el valor para compatibilidad con algunos sistmeas.
+ogDeleteRegistryValue "$MNTDIR" SYSTEM "\Setup\CmdLine"
+ogAddRegistryValue "$MNTDIR" SYSTEM "\Setup\CmdLine"
ogSetRegistryValue "$MNTDIR" SYSTEM "\Setup\CmdLine" "cmd.exe /c $(basename $CMDFILE)"
}