startsync: improve breakage detection
This commit is contained in:
parent
19ab3c5385
commit
03128e4d33
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue