summaryrefslogtreecommitdiff
path: root/network/zmap/doinst.sh
diff options
context:
space:
mode:
authorErik Hanson <erik@slackbuilds.org>2015-05-23 14:37:19 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-05-24 13:26:23 +0700
commit2354bf1b669c8d8dc431992c952c5668f3957066 (patch)
treecdd712a45340de2c47d99856215184150fcdf320 /network/zmap/doinst.sh
parent4270d4ffa2f20794fca4a0bd49939ba8c46dc140 (diff)
downloadslackbuilds-2354bf1b669c8d8dc431992c952c5668f3957066.tar.gz
network/zmap: Added (network scanner)
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
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 0000000000..eba158d1a4
--- /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