summaryrefslogtreecommitdiff
path: root/system/cdwrite/doinst.sh
diff options
context:
space:
mode:
authorCezary M. Kruk <c.kruk@bigfoot.com>2011-08-09 12:53:56 -0300
committerNiels Horn <niels.horn@slackbuilds.org>2011-08-09 12:53:56 -0300
commitce538ef95cfeb483f1bf6aebc7cf03d2cacd7dcb (patch)
tree4f7bb7fb78a3a659a187e4bad61a42e5175a796e /system/cdwrite/doinst.sh
parentdfa57e71659d7533a4460cddd947b593e7c5ef23 (diff)
downloadslackbuilds-ce538ef95cfeb483f1bf6aebc7cf03d2cacd7dcb.tar.gz
system/cdwrite: Added (CD/DVD reading/writing/encoding shell)
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'system/cdwrite/doinst.sh')
-rw-r--r--system/cdwrite/doinst.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/system/cdwrite/doinst.sh b/system/cdwrite/doinst.sh
new file mode 100644
index 0000000000..5f41c93fe6
--- /dev/null
+++ b/system/cdwrite/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/cdwrite.conf.new