summaryrefslogtreecommitdiff
path: root/system/slim/doinst.sh
diff options
context:
space:
mode:
authorFrank Caraballo <fecaraballo{at}gmail{dot}com>2010-05-13 01:01:09 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-13 01:01:09 +0200
commit71b68523c6b940e9e4b5763c132ddce0dbb324dd (patch)
treed8bd02a417195547cd16d70fec01b13023a06068 /system/slim/doinst.sh
parent2347e1ffa7df585ce7c2043e1cc958cf6af22c91 (diff)
downloadslackbuilds-71b68523c6b940e9e4b5763c132ddce0dbb324dd.tar.gz
system/slim: Added to 13.0 repository
Diffstat (limited to 'system/slim/doinst.sh')
-rw-r--r--system/slim/doinst.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/system/slim/doinst.sh b/system/slim/doinst.sh
new file mode 100644
index 0000000000..d419960559
--- /dev/null
+++ b/system/slim/doinst.sh
@@ -0,0 +1,15 @@
+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/slim.conf.new
+