summaryrefslogtreecommitdiffstats
path: root/system/sddm/doinst.sh
diff options
context:
space:
mode:
author David Woodfall2017-10-26 15:51:45 +0200
committer Willy Sudiarto Raharjo2017-10-28 02:07:02 +0200
commit214800082b8ba0ac5400d93c457e239a68feaf60 (patch)
treebdd2d33c8f3c7ffcaafd15977d777d08fd470edd /system/sddm/doinst.sh
parentc0c91a22cc529e4af62fe9f121e9d3c4f6171b46 (diff)
downloadslackbuilds-214800082b8ba0ac5400d93c457e239a68feaf60.tar.gz
system/sddm: Added (QML based X11 and Wayland display manager).
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'system/sddm/doinst.sh')
-rw-r--r--system/sddm/doinst.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/system/sddm/doinst.sh b/system/sddm/doinst.sh
new file mode 100644
index 0000000000..c5a2478d2b
--- /dev/null
+++ b/system/sddm/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/sddm.conf.new