diff options
author | GUAN Xin <guanx.bac@gmail.com> | 2019-08-03 07:18:05 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2019-08-03 07:18:05 +0700 |
commit | 116c173576910f37708f21ed423da8b866363a2f (patch) | |
tree | b8681f87e38fa0c2922c77c1e51b78c1972df39a /network/rdma-core/doinst.sh | |
parent | 9c4901bc157618c8375c00bcb41fa1ac2a5dae6e (diff) | |
download | slackbuilds-116c173576910f37708f21ed423da8b866363a2f.tar.gz |
network/rdma-core: Added (RDMA core userspace libraries/daemons).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/rdma-core/doinst.sh')
-rw-r--r-- | network/rdma-core/doinst.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/network/rdma-core/doinst.sh b/network/rdma-core/doinst.sh new file mode 100644 index 0000000000..19a6ff6ac8 --- /dev/null +++ b/network/rdma-core/doinst.sh @@ -0,0 +1,13 @@ +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... +} + |