From 0bd36841fb6a526619c282a2feee87f7908a0dbf Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Thu, 3 Oct 2013 11:40:30 +0200 Subject: fix behavior of inotifywait --- udev/ykfde | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'udev') diff --git a/udev/ykfde b/udev/ykfde index 7a53bcd..3646890 100755 --- a/udev/ykfde +++ b/udev/ykfde @@ -11,6 +11,6 @@ ykchalresp -${YKFDE_SLOT:-2} "$(cat /ykfde-challenge)" 2>/dev/null | tr -d '\n' # if the systemd unit was faster try to answer password agent for REQUEST in $(grep -l '^Message=Please enter passphrase for disk' /run/systemd/ask-password/ask.* || \ - inotifywait /run/systemd/ask-password/ 2>/dev/null | awk '{ print $1 $3 }'); do + inotifywait -q --format %w%f -e MOVED_TO /run/systemd/ask-password/); do /usr/lib/systemd/systemd-reply-password 1 $(grep '^Socket=' ${REQUEST} | cut -d= -f2) < /crypto_keyfile.bin done -- cgit v1.2.3-70-g09d2