summaryrefslogtreecommitdiffstats
path: root/client/engine
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2012-04-25 09:01:26 +0000
committerramon <ramongomez@us.es>2012-04-25 09:01:26 +0000
commit181c4de47319b12953609d4c558a5b98ebf4597a (patch)
tree9824dcd51fa0c13ae92aabe06adab532bba7f42e /client/engine
parent89a82089853b78dd54d0b6c7f1d8d9ae03beb56e (diff)
#501: Cliente para sistemas Windows.
git-svn-id: https://opengnsys.es/svn/branches/version1.0@2982 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'client/engine')
-rwxr-xr-xclient/engine/PostConf.lib12
1 files changed, 4 insertions, 8 deletions
diff --git a/client/engine/PostConf.lib b/client/engine/PostConf.lib
index fd51be5e..cf61220e 100755
--- a/client/engine/PostConf.lib
+++ b/client/engine/PostConf.lib
@@ -111,23 +111,19 @@ PART="$(ogDiskToDev $1 $2)" || return $?
MNTDIR=$(ogMount $1 $2) 2>/dev/null
[ -n "$MNTDIR" ] || ogRaiseError OG_ERR_PARTITION "$1, $2" || return $?
# Comprobar si existe el cliente y los directorios y ficheros destino.
-CLIENTFILE=$OGLIB/ogclient/ogAdmWinClient
+CLIENTFILE=$OGLIB/ogclient/ogAdmWinClient.exe
[ -f $CLIENTFILE ] || ogRaiseError $OG_ERR_FOUND "$CLIENTFILE" || return $?
for i in winnt windows; do
DIR=$(ogGetPath $MNTDIR/$i)
- [ -z "$DIR" ] && WINDIR=$DIR
+ [ -n "$DIR" ] && WINDIR=$DIR
done
[ -n "$WINDIR " ] || ogRaiseError $OG_ERR_NOTFOUND "$1 $2 windows" || return $?
# Realizar la instalaciĆ³n en modo uso exclusivo.
ogLock $1 $2
# Copiar cliente, generar fichero de configuraciĆ³n e incluir en el arranque.
cp -a $CLIENTFILE "$WINDIR"
-cat > $WINDIR/ogAdmLnxClient.cfg << EOT
-ServidorAdm=$(ogGetServerIp)
-PUERTO=2008
-IPLOCAL=$(ogGetIpAddress)
-EOT
-### TODO Incluir en arranque de Windows
+ogInstallMiniSetup $MNTDIR ogclient.cmd
+ogAddCmd $MNTDIR ogclient.cmd "ogAdmWinClient -install -s $(ogGetServerIp) -p 2008 -i $(ogGetIpAddress)"
ogUnlock $1 $2
}