aboutsummaryrefslogtreecommitdiffstats
path: root/udev/ykfde
diff options
context:
space:
mode:
Diffstat (limited to 'udev/ykfde')
-rwxr-xr-xudev/ykfde9
1 files changed, 9 insertions, 0 deletions
diff --git a/udev/ykfde b/udev/ykfde
new file mode 100755
index 0000000..ce83117
--- /dev/null
+++ b/udev/ykfde
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+source /etc/ykfde.conf
+
+# Looks like Yubikey is reset after challenge response, triggering
+# yet another add event. Ignore if the file exists.
+[ -s /crypto_keyfile.bin ] && exit 0
+
+ykchalresp -${YKFDE_SLOT:-2} "$(cat /ykfde-challenge)" > /crypto_keyfile.bin 2>/dev/null