18 lines
376 B
Bash
18 lines
376 B
Bash
#! /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
|
|
|
|
if [ "$(md5sum /etc/inputrc | cut -d' ' -f1)" = "e7d81f20943fc812b66b3ee56f5f68ce" ]; then
|
|
rm -f /etc/inputrc
|
|
cp /usr/share/readline/inputrc /etc/inputrc
|
|
fi
|
|
|
|
#DEBHELPER#
|