mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-09 22:12:56 +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" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
serviceConfig = { Type = "oneshot"; };
|
serviceConfig = { Type = "oneshot"; };
|
||||||
script = ''
|
script = ''
|
||||||
while true; do
|
for i in $(seq 1 10); do
|
||||||
if [ -f ${config.identityFile} ]; then
|
if [ -f ${config.identityFile} ]; then
|
||||||
echo "Identity file found."
|
echo "Identity file found."
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
sleep 5
|
sleep 6
|
||||||
exit 0
|
|
||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user