summaryrefslogtreecommitdiff
path: root/system/slackins/doinst.sh
diff options
context:
space:
mode:
authorHeinz Wiesinger <HMWiesinger@gmx.at>2010-05-11 20:02:08 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-11 20:02:08 +0200
commit6b606c42a37065bf50d13cdb44d070e11df8de81 (patch)
treed97edf040876599201a95071f5907074bf5d96e6 /system/slackins/doinst.sh
parent0cd50c0b6fb5aadb6fdecd0977e1b118329ce5bd (diff)
downloadslackbuilds-6b606c42a37065bf50d13cdb44d070e11df8de81.tar.gz
system/slackins: Added to 12.0 repository
Diffstat (limited to 'system/slackins/doinst.sh')
-rw-r--r--system/slackins/doinst.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/system/slackins/doinst.sh b/system/slackins/doinst.sh
new file mode 100644
index 0000000000..8a46b92aa7
--- /dev/null
+++ b/system/slackins/doinst.sh
@@ -0,0 +1,16 @@
+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/slackins/slackproc.conf.new
+config etc/slackins/slack_descrc.new
+