wait for device to be connected

This commit is contained in:
2019-09-19 22:53:17 +02:00
parent 2235fddb9a
commit 46bcc2f52a
3 changed files with 14 additions and 1 deletions

View File

@@ -0,0 +1,10 @@
[Unit]
Description=Wait for a FIDO2 device to be connected
[Service]
Type=oneshot
Environment=CON_MSG="Please connect your authenicator"
ExecStartPre=/usr/bin/plymouth display-message --text "${CON_MSG}"
ExecStart=/bin/bash -c 'while ! fido2luks connected; do sleep 1; done'
ExecStopPost=/usr/bin/plymouth hide-message --text "${CON_MSG}"