diff options
author | Marcel Saegebarth <marc@mos6581.de> | 2014-11-27 01:12:59 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2014-11-27 01:12:59 +0700 |
commit | a24af07f3fdcbf29ac2be9cc6853cee4e66e815d (patch) | |
tree | b0caf1eeb4a7133e03e76fde7709e183c6fba07b /network/proxychains/doinst.sh | |
parent | 01d8ce840e0f71fb13cf26cb13dfe89da261aa49 (diff) | |
download | slackbuilds-a24af07f3fdcbf29ac2be9cc6853cee4e66e815d.tar.gz |
network/proxychains: Updated for version 4.8.1 + new maintainer.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/proxychains/doinst.sh')
-rw-r--r-- | network/proxychains/doinst.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/network/proxychains/doinst.sh b/network/proxychains/doinst.sh new file mode 100644 index 0000000000..102610fb44 --- /dev/null +++ b/network/proxychains/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/proxychains.conf.new |