diff options
author | Javier Sánchez Parra <jsanchez@soleta.eu> | 2021-09-03 10:24:52 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2021-10-20 10:42:13 +0200 |
commit | 1feb2c99b62f7f1e8fd37a51d8f28c23d155cac6 (patch) | |
tree | 9d35861508b8267c83885b192eeca2e09755d941 /client/shared/scripts/restoreImage | |
parent | 9ee2e4b51ac95ca82a27b85202a70b2c111a9751 (diff) |
#1062 Support tiptorrent image transfer mode
Add support for tiptorrent image transfer mode to client's bash scripts
(aka cloning engine). If desired, clients receive images to restore with
the new unicast transfer mode tiptorrent.
See also: http://git.soleta.eu/tiptorrent/
Diffstat (limited to 'client/shared/scripts/restoreImage')
-rwxr-xr-x | client/shared/scripts/restoreImage | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/client/shared/scripts/restoreImage b/client/shared/scripts/restoreImage index d9e7f584..537bcbb9 100755 --- a/client/shared/scripts/restoreImage +++ b/client/shared/scripts/restoreImage @@ -77,6 +77,11 @@ fi # Procesar protocolos de transferencia. case "$PROTO" in + TIPTORRENT) + ogEcho log session "[40] ogRestoreImage $REPO $IMGNAME $DISK $PART true" + ogExecAndLog command ogRestoreImage "$REPO" "$IMGNAME" "$DISK" "$PART" true + RETVAL=$? + ;; UNICAST|UNICAST-DIRECT) # Restaurar la imagen. ogEcho log session "[40] ogRestoreImage $REPO $IMGNAME $DISK $PART UNICAST" |