summaryrefslogtreecommitdiffstats
path: root/debian/readline-common.postinst
diff options
context:
space:
mode:
Diffstat (limited to 'debian/readline-common.postinst')
-rw-r--r--debian/readline-common.postinst13
1 files changed, 13 insertions, 0 deletions
diff --git a/debian/readline-common.postinst b/debian/readline-common.postinst
new file mode 100644
index 0000000..1a664cf
--- /dev/null
+++ b/debian/readline-common.postinst
@@ -0,0 +1,13 @@
+#! /bin/sh -e
+
+install_from_default() {
+ if [ ! -f $2 ]; then
+ cp -p $1 $2
+ fi
+}
+
+if [ "$1" = "configure" ] && [ "$2" = "" ]; then
+ install_from_default /usr/share/readline/inputrc /etc/inputrc
+fi
+
+#DEBHELPER#