aboutsummaryrefslogtreecommitdiff
path: root/desktop/3ddesktop/doinst.sh
diff options
context:
space:
mode:
authorAlex Lysenka <me@alkos333.net>2010-05-11 20:00:02 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-11 20:00:02 +0200
commitbcb1912049855f87bb865c12ae85f2828caedbde (patch)
tree00c68d2527dcc1b726c97b0ec9600ac78d3f5da7 /desktop/3ddesktop/doinst.sh
parent01bb05a1712c288c0e100857406f8c5d2c60fe04 (diff)
desktop/3ddesktop: Added to 12.0 repository
Diffstat (limited to 'desktop/3ddesktop/doinst.sh')
-rw-r--r--desktop/3ddesktop/doinst.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/desktop/3ddesktop/doinst.sh b/desktop/3ddesktop/doinst.sh
new file mode 100644
index 0000000000000..22633f16d9c82
--- /dev/null
+++ b/desktop/3ddesktop/doinst.sh
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+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/3ddesktop.conf.new
+