diff --git a/startsync.script.nix b/startsync.script.nix index 7354a29..ea8014b 100644 --- a/startsync.script.nix +++ b/startsync.script.nix @@ -6,8 +6,10 @@ pkgs.writeShellScriptBin "startsync" '' killall sshfs sftp sleep 0.5 killall -9 sshfs sftp - sudo umount -l sync + sudo umount -l ~/sync sleep 0.5 + mkdir ~/broken + mv ~/sync/* ~/broken/ if [ "$1" = "stop" ] ; then exit ; fi sshfs -p 23 root@tudbut.de:sync ~/sync while ! ls ~/sync/Passwords.kdbx ; do sleep 0.2 ; done