summaryrefslogtreecommitdiff
path: root/desktop/wmfs/doinst.sh
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/wmfs/doinst.sh')
-rw-r--r--desktop/wmfs/doinst.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/desktop/wmfs/doinst.sh b/desktop/wmfs/doinst.sh
new file mode 100644
index 0000000000..a47480c86e
--- /dev/null
+++ b/desktop/wmfs/doinst.sh
@@ -0,0 +1,10 @@
+config() {
+ NEW="$1"
+ OLD="$(dirname $NEW)/$(basename $NEW .new)"
+ if [ ! -r $OLD ]; then
+ mv $NEW $OLD
+ elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
+ rm $NEW
+ fi
+}
+config etc/wmfs/wmfsrc.new