summaryrefslogtreecommitdiff
path: root/source/x/x11/doinst.sh/xfs
diff options
context:
space:
mode:
Diffstat (limited to 'source/x/x11/doinst.sh/xfs')
-rw-r--r--source/x/x11/doinst.sh/xfs14
1 files changed, 14 insertions, 0 deletions
diff --git a/source/x/x11/doinst.sh/xfs b/source/x/x11/doinst.sh/xfs
new file mode 100644
index 00000000..2b67221c
--- /dev/null
+++ b/source/x/x11/doinst.sh/xfs
@@ -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/fs/config.new
+