summaryrefslogtreecommitdiffstats
path: root/systemd/ykfde-2f
blob: 0884a611877ba5a0dd95767a00f13e9ea8262050 (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

# (C) 2016 by Christian Hesse <mail@eworm.de>
#
# This software may be used and distributed according to the terms
# of the GNU General Public License, incorporated herein by reference.

systemd-ask-password --no-tty --keyname='ykfde-2f' 'Please enter second factor for Yubikey full disk encryption!'

if [ -s '/run/ykfde.pid' ]; then
	kill -USR1 $(cat '/run/ykfde.pid')
	# ykfde started from udev needs a moment to set up the key
	# in store. It is out of systemd control, so wait a moment
	# here.
	sleep 0.2
fi

true