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.
master
Amadeusz Żołnowski 2011-08-18 15:55:57 +02:00 committed by Harald Hoyer
parent a76dc27801
commit 581dd40e73
1 changed files with 1 additions and 1 deletions

View File

@ -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"