mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-11-19 02:22:24 +01:00
continue ftp/torrent session
This commit is contained in:
@@ -143,21 +143,29 @@ if [ ${mountOK} -eq 1 ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# check if there is a download to continue
|
# check if there is torrent data to continue
|
||||||
torrentProgressExists=$(sudo ls /mnt/hdd/ 2>/dev/null | grep "torrent" -c)
|
torrentProgressExists=$(sudo ls /mnt/hdd/ 2>/dev/null | grep "torrent" -c)
|
||||||
if [ ${torrentProgressExists} -eq 1 ]; then
|
if [ ${torrentProgressExists} -eq 1 ]; then
|
||||||
|
# check if there is a running screen session to return to
|
||||||
|
noScreenSession=$(screen -ls | grep -c "No Sockets found")
|
||||||
|
if [ ${noScreenSession} -eq 0 ]; then
|
||||||
echo "found torrent data .. resuming"
|
echo "found torrent data .. resuming"
|
||||||
./50torrentHDD.sh
|
./50torrentHDD.sh
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# check if there is a download to continue
|
# check if there is ftp data to continue
|
||||||
downloadProgressExists=$(sudo ls /mnt/hdd/ 2>/dev/null | grep "download" -c)
|
downloadProgressExists=$(sudo ls /mnt/hdd/ 2>/dev/null | grep "download" -c)
|
||||||
if [ ${downloadProgressExists} -eq 1 ]; then
|
if [ ${downloadProgressExists} -eq 1 ]; then
|
||||||
|
# check if there is a running screen session to return to
|
||||||
|
noScreenSession=$(screen -ls | grep -c "No Sockets found")
|
||||||
|
if [ ${noScreenSession} -eq 0 ]; then
|
||||||
echo "found download in data .. resuming"
|
echo "found download in data .. resuming"
|
||||||
./50downloadHDD.sh
|
./50downloadHDD.sh
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# HDD is empty - get Blockchain
|
# HDD is empty - get Blockchain
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user