summaryrefslogtreecommitdiffstats
path: root/system/cdemu-client/doinst.sh
diff options
context:
space:
mode:
author Niels Horn <niels.horn@gmail.com>2010-11-26 00:02:21 +0100
committer Heinz Wiesinger <pprkut@slackbuilds.org>2010-11-26 00:02:21 +0100
commit47f69385d777c3a4b73b2c815a2fe669853d4504 (patch)
treed7fcbe1311d37cfaffe4140c84f3d188a96b96b2 /system/cdemu-client/doinst.sh
parentda2dfb1a62b2ab523807dac96813a899e6add7db (diff)
downloadslackbuilds-47f69385d777c3a4b73b2c815a2fe669853d4504.tar.gz
slackbuilds-47f69385d777c3a4b73b2c815a2fe669853d4504.tar.xz
system/cdemu-client: Added. (command-line client for CDEmu-daemon)
Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>
Diffstat (limited to 'system/cdemu-client/doinst.sh')
-rw-r--r--system/cdemu-client/doinst.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/system/cdemu-client/doinst.sh b/system/cdemu-client/doinst.sh
new file mode 100644
index 0000000000..05da157bfd
--- /dev/null
+++ b/system/cdemu-client/doinst.sh
@@ -0,0 +1,18 @@
+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...
+}
+
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database usr/share/applications >/dev/null 2>&1
+fi
+
+config etc/cdemu-client.conf.new
+