diff options
author | Phillip Warner <pc_warner@yahoo.com> | 2020-02-15 08:41:45 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2020-02-15 08:41:45 +0700 |
commit | 2b7fc09e96aea2f5178c4dcef639a6b61992b17e (patch) | |
tree | a8ed048a8338b3663a8720bbb129f1589d0a368c /system/xorgxrdp/doinst.sh | |
parent | 9227ee9a54a8f1bcbce1f4ca0608bc4d483d9924 (diff) |
system/xorgxrdp: Added (support files for xrdp).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/xorgxrdp/doinst.sh')
-rw-r--r-- | system/xorgxrdp/doinst.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/system/xorgxrdp/doinst.sh b/system/xorgxrdp/doinst.sh new file mode 100644 index 0000000000..0795323810 --- /dev/null +++ b/system/xorgxrdp/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/X11/xrdp/xorg.conf.new |