summaryrefslogtreecommitdiffstats
path: root/source/a/ndctl/doinst.sh
diff options
context:
space:
mode:
author Patrick J Volkerding <volkerdi@slackware.com>2020-10-28 20:19:37 +0000
committer Eric Hameleers <alien@slackware.com>2020-10-29 08:59:45 +0100
commit037917abe789c55171028a20ce56284921260d2a (patch)
tree8460773d2753bd9e953d37f5e59e54d1fa0b2e4d /source/a/ndctl/doinst.sh
parentaa7512c31f7b3672d1605cf788d8e481b507949e (diff)
downloadcurrent-20201028201937.tar.gz
current-20201028201937.tar.xz
Wed Oct 28 20:19:37 UTC 202020201028201937
a/libblockdev-2.24-x86_64-1.txz: Added. This is required by the new version of udisks2. a/libbytesize-2.4-x86_64-1.txz: Added. This is required by the new version of udisks2. a/ndctl-70.1-x86_64-1.txz: Added. This is required by libblockdev, which in turn is required by the new version of udisks2. a/udisks2-2.9.1-x86_64-1.txz: Upgraded. Thanks to Robby Workman for this update and the deps for it. a/volume_key-0.3.12-x86_64-1.txz: Added. This is required by the new version of udisks2. ap/qpdf-10.0.2-x86_64-1.txz: Upgraded. n/openvpn-2.5.0-x86_64-1.txz: Upgraded. n/php-7.4.12-x86_64-1.txz: Upgraded.
Diffstat (limited to 'source/a/ndctl/doinst.sh')
-rw-r--r--source/a/ndctl/doinst.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/source/a/ndctl/doinst.sh b/source/a/ndctl/doinst.sh
new file mode 100644
index 000000000..2fe7500eb
--- /dev/null
+++ b/source/a/ndctl/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/ndctl/monitor.conf.new