summaryrefslogtreecommitdiff
path: root/repo/pinentry/pinentry.post-install
diff options
context:
space:
mode:
Diffstat (limited to 'repo/pinentry/pinentry.post-install')
-rw-r--r--repo/pinentry/pinentry.post-install9
1 files changed, 9 insertions, 0 deletions
diff --git a/repo/pinentry/pinentry.post-install b/repo/pinentry/pinentry.post-install
new file mode 100644
index 0000000..73ef9c0
--- /dev/null
+++ b/repo/pinentry/pinentry.post-install
@@ -0,0 +1,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