Skip to contentSkip to conversation

90crypt: ask_for_password pings plymouthd

PATCH New Amadeusz Żołnowski 1 participant 1 message Aug 18, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 90crypt: ask_for_password pings plymouthd

If plymouthd is not started, ask_for_password shouldn't try to prompt for password with GUI and should use text prompt instead.

---
 modules.d/90crypt/crypt-lib.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
modules.d/90crypt/crypt-lib.sh +1 -1
index 2797a7a..69f14d0 100755
@@ -47,7 +47,7 @@ ask_for_password() {
 
     { flock -s 9;
         # Prompt for password with plymouth, if installed and running.
-        if [ -x /bin/plymouth ]; then
+        if [ -x /bin/plymouth ] && /bin/plymouth --ping; then
             /bin/plymouth ask-for-password \
                 --prompt "$ply_prompt" --number-of-tries=$ply_tries \
                 --command="$ply_cmd"
Signature · 1 line
1.7.6