aboutsummaryrefslogtreecommitdiff
path: root/network/zmap/doinst.sh
diff options
context:
space:
mode:
Diffstat (limited to 'network/zmap/doinst.sh')
-rw-r--r--network/zmap/doinst.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/network/zmap/doinst.sh b/network/zmap/doinst.sh
new file mode 100644
index 0000000000000..eba158d1a474d
--- /dev/null
+++ b/network/zmap/doinst.sh
@@ -0,0 +1,12 @@
+config() {
+ NEW="$1"
+ OLD="$(dirname $NEW)/$(basename $NEW .new)"
+ if [ ! -r $OLD ]; then
+ mv $NEW $OLD
+ elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
+ rm $NEW
+ fi
+}
+
+config etc/zmap/zmap.conf.new
+config etc/zmap/blacklist.conf.new