From 29d2e67460f0e6b20aaf016b6dd90841c3eba909 Mon Sep 17 00:00:00 2001 From: Javier Sánchez Parra Date: Thu, 9 Sep 2021 10:35:54 +0200 Subject: #1062 Launch tiptorrent on oglive init This commit adds tiptorrent launch to oglive init process. Clients launch tiptorrent daemon if they have cache partition. --- client/shared/etc/init/default.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/shared/etc/init/default.sh b/client/shared/etc/init/default.sh index e062a306..18ae37c5 100755 --- a/client/shared/etc/init/default.sh +++ b/client/shared/etc/init/default.sh @@ -19,6 +19,9 @@ echo "${MSG_LAUNCHCLIENT:-.}" [ -f /usr/local/etc/${LANG%_*}.qmap ] && export QWS_KEYBOARD="TTY:keymap=/usr/local/etc/${LANG%_*}.qmap" if [ "$ogstatus" != "offline" ]; then + if ogFindCache &>/dev/null; then + /opt/opengnsys/bin/tiptorrent --root /opt/opengnsys/cache/opt/opengnsys/images -n 3 & + fi /opt/opengnsys/ogClient/./ogclient else for FILE in index $OGGROUP $(ogGetIpAddress) -- cgit v1.2.3-18-g5258