diff options
author | Daniel Prosser <dpross1100@msn.com> | 2017-04-12 15:32:29 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-04-13 07:23:45 +0700 |
commit | b8adb5083b194f8eab9bb1946572b1e56bdf08be (patch) | |
tree | 697a03d915cd71905224bc74c51e855ed8cb9342 /system/sboui/doinst.sh | |
parent | ed81676a4ba4c48c1000b590f6d24a33548c4a32 (diff) | |
download | slackbuilds-b8adb5083b194f8eab9bb1946572b1e56bdf08be.tar.gz |
system/sboui: Added (UI for SBo package managers).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/sboui/doinst.sh')
-rw-r--r-- | system/sboui/doinst.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/system/sboui/doinst.sh b/system/sboui/doinst.sh new file mode 100644 index 0000000000..0423b2480c --- /dev/null +++ b/system/sboui/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... +} + +config etc/sboui/sboui.conf.new |