18 lines
285 B
Bash
Executable file
18 lines
285 B
Bash
Executable file
#!/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
|