19 lines
285 B
Text
19 lines
285 B
Text
|
|
#!/bin/sh
|
||
|
|
|
||
|
|
echo "OK Please go ahead"
|
||
|
|
while read stdin; do
|
||
|
|
case $stdin in
|
||
|
|
GETPIN | getpin)
|
||
|
|
echo "D $(fuzzel --prompt-only "Passphrase: " --cache /dev/null --password --dmenu)"
|
||
|
|
echo "OK"
|
||
|
|
;;
|
||
|
|
BYE | bye)
|
||
|
|
echo "OK closing connection"
|
||
|
|
exit 0
|
||
|
|
;;
|
||
|
|
*)
|
||
|
|
echo "OK"
|
||
|
|
;;
|
||
|
|
esac
|
||
|
|
done
|