#725: Definir zona horaria por defecto y sincronizar con NTP si existe la opción {{{ogntp=}}}{{{IP}}} en el arranque del cliente.
git-svn-id: https://opengnsys.es/svn/branches/version1.1@4717 a21b9725-9963-47de-94b9-378ad31fedc9remotes/github/debian-pkg
parent
9e0ee124d4
commit
ccc18febdc
|
@ -89,6 +89,10 @@ if [ -d $OPENGNSYS ]; then
|
|||
export OGLOGFILE="$OGLOG/$(ogGetIpAddress).log"
|
||||
fi
|
||||
|
||||
# Sincronización horaria con servidor NTP.
|
||||
export TZ=${TZ:-"Europe/Madrid"} # Zona horaria por defecto: UTC+1.
|
||||
[ -n "$ogntp" -a "$status" != "offline" ] && ntpdate $ogntp
|
||||
|
||||
# Compatibilidad para usar proxy en clientes ogLive.
|
||||
[ -z "$http_proxy" -a -n "$ogproxy" ] && export http_proxy="$ogproxy"
|
||||
|
||||
|
|
Loading…
Reference in New Issue