summaryrefslogtreecommitdiffstats
path: root/main/pinentry/pinentry-gtk.post-deinstall
diff options
context:
space:
mode:
Diffstat (limited to 'main/pinentry/pinentry-gtk.post-deinstall')
-rw-r--r--main/pinentry/pinentry-gtk.post-deinstall8
1 files changed, 8 insertions, 0 deletions
diff --git a/main/pinentry/pinentry-gtk.post-deinstall b/main/pinentry/pinentry-gtk.post-deinstall
new file mode 100644
index 000000000..887ef798a
--- /dev/null
+++ b/main/pinentry/pinentry-gtk.post-deinstall
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+if [ -f /usr/bin/pinentry-curses ]; then
+ ln -sf pinentry-curses /usr/bin/pinentry
+else
+ rm -f /usr/bin/pinentry
+fi
+