1 2 3 4 5 6 7 8 9
#!/bin/sh for i in curses-ss gtk-2 gnome qt; do [ -f /usr/bin/pinentry-$i ] && exit 0 done ln -sf pinentry-curses /usr/bin/pinentry exit 0