startsync: improve breakage detection

This commit is contained in:
Daniella / Tove 2024-10-28 22:06:27 +01:00
parent 19ab3c5385
commit 03128e4d33
Signed by: TudbuT
GPG key ID: B3CF345217F202D3

View file

@ -12,7 +12,7 @@ pkgs.writeShellScriptBin "startsync" ''
sshfs -p 23 root@tudbut.de:sync ~/sync
while ! ls ~/sync/Passwords.kdbx ; do sleep 0.2 ; done
while true ; do
(ls ~/sync ; echo -n yes > ~/.syncfs_ok) &
(cat ~/sync/test > /dev/null ; touch ~/.syncfs_ok) &
sleep 5
if ! [ -e ~/.syncfs_ok ] ; then
"$script" stop