This commit is contained in:
Daniel Langbein 2023-11-23 12:44:23 +01:00
parent 635796045f
commit b07e59d12d
Signed by: langfingaz
GPG Key ID: 6C47C753F0823002
3 changed files with 5 additions and 5 deletions

View File

@ -6,10 +6,10 @@ set -eu -o pipefail
while :; do
result="$(ssh yodaNas 'ls stay-alive 2>&1')" || :
case "${result}" in
*"No such file or directory")
*'No such file or directory')
break
;;
"stay-alive")
'stay-alive')
printf '%s\n' 'Delaying suspend due to stay-alive file.'
;;
*)

View File

@ -22,7 +22,7 @@
../../modules/btrbk
./btrbk-config.nix
../../modules/de-p1st-monitor.nix
#../../modules/spin-down-hdd.nix
../../modules/spin-down-hdd.nix
../../modules/btrfs-scrub.nix
../../modules/btrfs-mount-options.nix

View File

@ -85,10 +85,10 @@ in
while :; do
result="$(ssh ${backup-source} 'ls ${stay-awake-file} 2>&1')" ||:
case "''${result}" in
*"No such file or directory")
*'No such file or directory')
break
;;
"${stay-awake-file}")
'${stay-awake-file}')
printf '%s\n' 'Delaying suspend due to ${stay-awake-file} file.'
;;
*)