=== added file 'plugins.d/splashy' --- plugins.d/splashy 1970-01-01 00:00:00 +0000 +++ plugins.d/splashy 2008-09-22 07:37:53 +0000 @@ -0,0 +1,28 @@ +#!/bin/sh -e + +# If not on a tty, then get rid of possibly disrupting stderr output +if ! tty -s; then + exec 2>/dev/null +fi + +test -x /sbin/splashy_update + +# We get some variables from cryptsetup: +# $cryptsource the device node, like "/dev/sda3" +# $crypttarget the device mapper name, like "sda3_crypt". + +prompt="Enter passphrase to unlock" +if [ -n "$crypttarget" ]; then + prompt="$prompt the disk $crypttarget" +fi +if [ -n "$cryptsource" ]; then + prompt="$prompt ($cryptsource)" +fi + +splash_input_password(){ + /sbin/splashy_update "getpass $1" +} + +password="`splash_input_password \"$prompt: \"`" + +echo -n "$password" === modified file 'plugins.d/usplash' --- plugins.d/usplash 2008-08-14 02:24:59 +0000 +++ plugins.d/usplash 2008-09-22 07:37:53 +0000 @@ -33,7 +33,7 @@ trap "kill -TERM $usplash; sleep 2; kill -KILL $usplash; kill -TERM $$" TERM HUP -password="`splash_input_password \"$prompt: \" password`" +password="`splash_input_password \"$prompt: \"`" trap - TERM