mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-25 03:15:38 +00:00
make identity wait a finite amount
This commit is contained in:
parent
c3be92dcaf
commit
6b5892eb1d
@ -6,13 +6,12 @@
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
serviceConfig = { Type = "oneshot"; };
|
||||
script = ''
|
||||
while true; do
|
||||
for i in $(seq 1 10); do
|
||||
if [ -f ${config.identityFile} ]; then
|
||||
echo "Identity file found."
|
||||
exit 0
|
||||
fi
|
||||
sleep 5
|
||||
exit 0
|
||||
sleep 6
|
||||
done
|
||||
'';
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user