diff options
author | Nishant Limbachia <nishant@mnspace.net> | 2011-10-30 23:18:00 -0200 |
---|---|---|
committer | Niels Horn <niels.horn@slackbuilds.org> | 2011-10-30 23:18:00 -0200 |
commit | eda9f7b6afef467eea0f45fe1b45aefc2e0bd873 (patch) | |
tree | 55d8aa7880dc32f0e64808986bbad6c2f87c3058 /system/dar/doinst.sh | |
parent | 512eed69fc018f833b8dd9690c4218daefe6a3aa (diff) |
system/dar: Updated for version 2.4.2.
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'system/dar/doinst.sh')
-rw-r--r-- | system/dar/doinst.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/system/dar/doinst.sh b/system/dar/doinst.sh new file mode 100644 index 000000000000..321869192d67 --- /dev/null +++ b/system/dar/doinst.sh @@ -0,0 +1,14 @@ +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/darrc.new |