diff options
Diffstat (limited to 'accessibility/speech-dispatcher/doinst.sh')
-rw-r--r-- | accessibility/speech-dispatcher/doinst.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/accessibility/speech-dispatcher/doinst.sh b/accessibility/speech-dispatcher/doinst.sh new file mode 100644 index 0000000000000..d99dba1aac6c6 --- /dev/null +++ b/accessibility/speech-dispatcher/doinst.sh @@ -0,0 +1,9 @@ +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 +} |