summaryrefslogtreecommitdiffstats
path: root/client/shared/etc/init
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2021-09-09 10:35:54 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2021-10-20 10:42:13 +0200
commit29d2e67460f0e6b20aaf016b6dd90841c3eba909 (patch)
tree483fe6c1dd43e39c3e4a7bb6626257211b5ec1c7 /client/shared/etc/init
parent5a56f3107b9b4388abd3740d317608a70a06ee7e (diff)
#1062 Launch tiptorrent on oglive init
This commit adds tiptorrent launch to oglive init process. Clients launch tiptorrent daemon if they have cache partition.
Diffstat (limited to 'client/shared/etc/init')
-rwxr-xr-xclient/shared/etc/init/default.sh3
1 files changed, 3 insertions, 0 deletions
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)