diff options
author | Irina Gómez <irinagomez@us.es> | 2019-05-13 10:14:38 +0200 |
---|---|---|
committer | Irina Gómez <irinagomez@us.es> | 2019-05-13 10:14:38 +0200 |
commit | 04b15943a1c2000616da87528418cd96f28e70ff (patch) | |
tree | 746224bbaecbd4701a81ddbc4970f01d2b17f957 /client/shared/scripts | |
parent | b845aabe00bd8f91093c654aacee96407897d26c (diff) | |
parent | fec3e4f55169609aa6a13b9f29272113fe9ffa0c (diff) |
Merge branch 'devel' into uefi (fast-forward)
Diffstat (limited to 'client/shared/scripts')
-rwxr-xr-x | client/shared/scripts/configureOs | 4 | ||||
-rwxr-xr-x | client/shared/scripts/deployImage | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/client/shared/scripts/configureOs b/client/shared/scripts/configureOs index cf3980db..2e529c9e 100755 --- a/client/shared/scripts/configureOs +++ b/client/shared/scripts/configureOs @@ -101,6 +101,10 @@ case "$OSTYPE" in [ -n "$(find $MNTDIR/usr/sbin $MNTDIR/sbin $MNTDIR/usr/local/sbin -name ogAdmLnxClient -print)" ] && ogUninstallLinuxClient $1 $2 # Configurar nuevo agente OGAgent. ogConfigureOgagent $1 $2 + ## Modificar el nombre del equipo + echo "Asignar nombre Linux \"$HOST\"." + ETC=$(ogGetPath $1 $2 /etc) + [ -d "$ETC" ] && echo "$HOST" >$ETC/hostname 2>/dev/null ;; MacOS) # Postconfiguración de Mac OS X. # Fichero indicador de activación de postconfiguración. diff --git a/client/shared/scripts/deployImage b/client/shared/scripts/deployImage index 824da2af..b6696443 100755 --- a/client/shared/scripts/deployImage +++ b/client/shared/scripts/deployImage @@ -119,6 +119,8 @@ case "$MODE" in # Si protocolo es torrent|torrent-cache o multicast|multicast-cache TORRENT|TORRENT-CACHE|MULTICAST|MULTICAST-CACHE|UNICAST|UNICAST-CACHE) + # Eliminamos CACHE o DIRECT + PROTO=${PROTO%%-*} ogEcho log session "[2] updateCache "$REPO" \"/$IMGNAME.img\" $PROTO $PROTOOPT" TIME2=$SECONDS updateCache "$REPO" "/$IMGNAME.img" "$PROTO" "$PROTOOPT" |