diff options
author | Frank Caraballo <fecaraballo{at}gmail{dot}com> | 2010-05-13 01:01:09 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-13 01:01:09 +0200 |
commit | 71b68523c6b940e9e4b5763c132ddce0dbb324dd (patch) | |
tree | d8bd02a417195547cd16d70fec01b13023a06068 /system/slim/doinst.sh | |
parent | 2347e1ffa7df585ce7c2043e1cc958cf6af22c91 (diff) |
system/slim: Added to 13.0 repository
Diffstat (limited to 'system/slim/doinst.sh')
-rw-r--r-- | system/slim/doinst.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/system/slim/doinst.sh b/system/slim/doinst.sh new file mode 100644 index 000000000000..d41996055985 --- /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 + |