summary refs log tree commit diff stats
path: root/bin/yubikey_detect_touch.sh
diff options
context:
space:
mode:
authorBenjamin Morrison <ben@gbmor.org>2023-11-06 22:15:23 -0500
committerBenjamin Morrison <ben@gbmor.org>2023-11-06 22:15:23 -0500
commitdc500844c448deb46aa8613faa3d295a0061965c (patch)
treed8090e57e9d728f6119d34d05b730d4cf168ddfc /bin/yubikey_detect_touch.sh
parentc5bae0a85eccbfb07fa5b269b3e8d73e7a60bac4 (diff)
downloaddogfiles-trunk.tar.gz
config drifted. HEAD trunk
Diffstat (limited to 'bin/yubikey_detect_touch.sh')
-rwxr-xr-xbin/yubikey_detect_touch.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/bin/yubikey_detect_touch.sh b/bin/yubikey_detect_touch.sh
new file mode 100755
index 0000000..ce4893e
--- /dev/null
+++ b/bin/yubikey_detect_touch.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+set -e
+
+if ! pgrep yubikey-touch-detector; then
+    yubikey-touch-detector &
+fi
+
+if ! pgrep yubikey-push-the-button; then
+    yubikey-push-the-button &
+fi