aboutsummaryrefslogtreecommitdiff
path: root/system/nilfs-utils/doinst.sh
diff options
context:
space:
mode:
authorHeinz Wiesinger <pprkut@liwjatan.at>2010-05-13 01:00:58 +0200
committerErik Hanson <erik@slackbuilds.org>2010-05-13 01:00:58 +0200
commit06e454263971e01ebcc743291c31a90f0092eb0f (patch)
treee8089ce8ef011eac273273fa285d06727783ac9b /system/nilfs-utils/doinst.sh
parentb205a68070a29158eb6c7697bcd5c968966c6412 (diff)
system/nilfs-utils: Added to 13.0 repository
Diffstat (limited to 'system/nilfs-utils/doinst.sh')
-rw-r--r--system/nilfs-utils/doinst.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/system/nilfs-utils/doinst.sh b/system/nilfs-utils/doinst.sh
new file mode 100644
index 0000000000000..400394ee2801f
--- /dev/null
+++ b/system/nilfs-utils/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/nilfs_cleanerd.conf.new
+