diff options
author | Marco Bonetti <sid77@slackware.it> | 2012-02-02 15:27:22 -0600 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2012-02-11 21:19:29 -0600 |
commit | ed86910e6bec17716565d37b574b0a6ed08c43a9 (patch) | |
tree | 65ee81c0220a968ef11027f9792d2be8ba3d660d /network/reaver/doinst.sh | |
parent | c564777ec4fb12be96cab0a001ca51878c423590 (diff) |
network/reaver: Added (brute force attack against Wifi Protected Setup)
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
Diffstat (limited to 'network/reaver/doinst.sh')
-rw-r--r-- | network/reaver/doinst.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/network/reaver/doinst.sh b/network/reaver/doinst.sh new file mode 100644 index 0000000000000..d62794208e2ae --- /dev/null +++ b/network/reaver/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/reaver/reaver.db.new |