summaryrefslogtreecommitdiff
path: root/system/clusterglue/doinst.sh
diff options
context:
space:
mode:
authorZordrak <slackbuilds@tpa.me.uk>2010-04-18 01:03:14 -0400
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-15 10:38:19 +0200
commit906ac354a1bcf4d0fde922341410d042084497ae (patch)
tree8098fc13e1e59a01b79448faddb37bf7240b23c2 /system/clusterglue/doinst.sh
parent7eca71744e080d92e4d208408cc09e17830f6e49 (diff)
downloadslackbuilds-906ac354a1bcf4d0fde922341410d042084497ae.tar.gz
system/clusterglue: Added (Reusable Cluster Components)
Diffstat (limited to 'system/clusterglue/doinst.sh')
-rw-r--r--system/clusterglue/doinst.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/system/clusterglue/doinst.sh b/system/clusterglue/doinst.sh
new file mode 100644
index 0000000000..5a19c488c6
--- /dev/null
+++ b/system/clusterglue/doinst.sh
@@ -0,0 +1,17 @@
+config() {
+ NEW="$1"
+ OLD="$(dirname $NEW)/$(basename $NEW .new)"
+ if [ ! -r $OLD ]; then
+ mv $NEW $OLD
+ elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
+ rm $NEW
+ fi
+}
+
+if [ -e etc/rc.d/rc.logd ]; then
+ cp -a etc/rc.d/rc.logd etc/rc.d/rc.logd.new.incoming
+ cat etc/rc.d/rc.logd.new > etc/rc.d/rc.logd.new.incoming
+ mv etc/rc.d/rc.logd.new.incoming etc/rc.d/rc.logd.new
+fi
+
+config etc/rc.d/rc.logd.new