summaryrefslogtreecommitdiffstats
path: root/source.local/x/x11/doinst.sh/xdm
diff options
context:
space:
mode:
Diffstat (limited to 'source.local/x/x11/doinst.sh/xdm')
-rw-r--r--source.local/x/x11/doinst.sh/xdm15
1 files changed, 15 insertions, 0 deletions
diff --git a/source.local/x/x11/doinst.sh/xdm b/source.local/x/x11/doinst.sh/xdm
new file mode 100644
index 0000000..bb08dc5
--- /dev/null
+++ b/source.local/x/x11/doinst.sh/xdm
@@ -0,0 +1,15 @@
+#!/bin/sh
+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/xdm/xdm-config.new
+config etc/X11/xdm/Xservers.new
+config etc/X11/xdm/Xsession.new