#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-378ad31fedc9
remotes/github/debian-pkg
ramon 2015-11-05 13:24:45 +00:00
parent 9e0ee124d4
commit ccc18febdc
1 changed files with 4 additions and 0 deletions

View File

@ -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"