From d638db3db5f6e19c82f2b8185e647d38408a839b Mon Sep 17 00:00:00 2001 From: Robby Workman Date: Tue, 18 May 2010 09:03:46 -0500 Subject: libraries/barry: Updated for version 0.16. --- libraries/barry/doinst.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 libraries/barry/doinst.sh (limited to 'libraries/barry/doinst.sh') diff --git a/libraries/barry/doinst.sh b/libraries/barry/doinst.sh new file mode 100644 index 0000000000..4fbe19818e --- /dev/null +++ b/libraries/barry/doinst.sh @@ -0,0 +1,19 @@ +config() { + NEW="$1" + OLD="$(dirname $NEW)/$(basename $NEW .new)" + # If there's no config file by that name, mv it over: + if [ ! -r $OLD ]; then + mv $NEW $OLD + elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then + # toss the redundant copy + rm $NEW + fi + # Otherwise, we leave the .new copy for the admin to consider... +} + +config etc/modprobe.d/barry.conf.new + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi + -- cgit v1.2.3