diff options
author | Antonio Hernández Blas <hba.nihilismus@gmail.com> | 2010-05-11 22:54:38 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-11 22:54:38 +0200 |
commit | f7dc75ef475993e38ed010f23c9b33d220c374ee (patch) | |
tree | e370867675d615a6303cfbc028bfc5cd7666ad6c /network/axel/doinst.sh | |
parent | 66e3f7d0bdcb60b0ba015ba3959124a80a69a99a (diff) | |
download | slackbuilds-f7dc75ef475993e38ed010f23c9b33d220c374ee.tar.gz |
network/axel: Added to 12.1 repository
Diffstat (limited to 'network/axel/doinst.sh')
-rw-r--r-- | network/axel/doinst.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/network/axel/doinst.sh b/network/axel/doinst.sh new file mode 100644 index 0000000000..4247863758 --- /dev/null +++ b/network/axel/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/axelrc.new |