diff options
Diffstat (limited to 'desktop/wmfs/doinst.sh')
-rw-r--r-- | desktop/wmfs/doinst.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/desktop/wmfs/doinst.sh b/desktop/wmfs/doinst.sh new file mode 100644 index 0000000000000..a47480c86eb7b --- /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 |