fido2luks/dracut/96luks-2fa/fido2-connected.service
2019-09-21 01:01:29 +02:00

11 lines
359 B
Desktop File

[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 ! /usr/bin/fido2luks connected; do /usr/bin/sleep 1; done'
ExecStopPost=/usr/bin/plymouth hide-message --text "${CON_MSG}"