diff options
author | Jason Graham <jgraha8@gmail.com> | 2018-05-08 15:02:16 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2018-05-12 06:58:25 +0700 |
commit | 8414cf022f22b5b61af6af519aa72dc816cf7b03 (patch) | |
tree | 52dbc96a27774cc4429f696c21ef0b27645c7ce7 /network/ipv6calc/doinst.sh | |
parent | d58415aa6d6e168970150505c96909c28e34c2ac (diff) |
network/ipv6calc: Updated for version 1.0.0.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'network/ipv6calc/doinst.sh')
-rw-r--r-- | network/ipv6calc/doinst.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/network/ipv6calc/doinst.sh b/network/ipv6calc/doinst.sh new file mode 100644 index 0000000000000..d695f1cef55a0 --- /dev/null +++ b/network/ipv6calc/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... +} + |