diff options
author | Andy Alt <andy400-dev@yahoo.com> | 2018-10-27 06:11:33 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2018-10-27 09:27:31 +0700 |
commit | 14b0b718bd4f70d01f2533f2e35b9039b7a58135 (patch) | |
tree | ce9d389af4213e1455a7e93a77c492d505b55525 /system/rmw/doinst.sh | |
parent | cf85678bd12c650ba563bee227134228e76e3226 (diff) |
system/rmw: Updated for version 0.4.05.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/rmw/doinst.sh')
-rw-r--r-- | system/rmw/doinst.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/system/rmw/doinst.sh b/system/rmw/doinst.sh new file mode 100644 index 0000000000000..a8f047556c7c5 --- /dev/null +++ b/system/rmw/doinst.sh @@ -0,0 +1,12 @@ +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/rmwrc.new |