diff --git a/ogclient/etc/preinit/otherservices.sh b/ogclient/etc/preinit/otherservices.sh index bc5de62..35d4899 100755 --- a/ogclient/etc/preinit/otherservices.sh +++ b/ogclient/etc/preinit/otherservices.sh @@ -13,6 +13,12 @@ ogIsEfiActive && mount -t efivarfs none /sys/firmware/efi/efivars # Lanzar servicios complementarios del cliente. echo "${MSG_OTHERSERVICES:-.}" +# Iniciar stunnel, si es necesario. +if [ -e /etc/stunnel/menu.conf ]; then + sed -i -e "s/__OGCORE_IP__/$ogcore/; s/__OGCORE_PORT__/8443/" /etc/stunnel/menu.conf + stunnel /etc/stunnel/menu.conf +fi + # Iniciar rsyslog, si es necesario. [ -S /dev/log ] || service rsyslog start