diff options
author | Vincent Batts <vbatts@hashbangbash.com> | 2011-07-03 13:49:33 -0400 |
---|---|---|
committer | Niels Horn <niels.horn@slackbuilds.org> | 2011-07-14 21:54:02 -0300 |
commit | 167bca5c9dd1f8e601de1aa3fcc94fac02890649 (patch) | |
tree | 6af01f807b56c0459f02091d7ea8d57a8aa51210 /network/torsocks/doinst.sh | |
parent | 267caa0dc01dbfa715b43a9537a8d3e4dacb9422 (diff) | |
download | slackbuilds-167bca5c9dd1f8e601de1aa3fcc94fac02890649.tar.gz |
network/torsocks: Added (socks friendly usage with tor)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'network/torsocks/doinst.sh')
-rw-r--r-- | network/torsocks/doinst.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/network/torsocks/doinst.sh b/network/torsocks/doinst.sh new file mode 100644 index 0000000000..8dd043ac28 --- /dev/null +++ b/network/torsocks/doinst.sh @@ -0,0 +1,15 @@ +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/torsocks.conf.new + |