summaryrefslogtreecommitdiff
path: root/system/rar/doinst.sh
diff options
context:
space:
mode:
authorSteven Pledger <piratesmack@ymail.com>2010-05-12 23:33:47 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-12 23:33:47 +0200
commit723d110c30606be3a10ab1f863c8f0dab7791b4e (patch)
tree9abdd58469bfb114478ebc10df49978676f62d11 /system/rar/doinst.sh
parent84c1b62f41c085e6fd8edc44766b45b7f894f277 (diff)
downloadslackbuilds-723d110c30606be3a10ab1f863c8f0dab7791b4e.tar.gz
system/rar: Added to 12.2 repository
Diffstat (limited to 'system/rar/doinst.sh')
-rw-r--r--system/rar/doinst.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/system/rar/doinst.sh b/system/rar/doinst.sh
new file mode 100644
index 0000000000..9c74f0a6d2
--- /dev/null
+++ b/system/rar/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/rarfiles.lst.new
+