diff options
author | Marco Cecchetti <mrc.ildp@gmail.com> | 2010-05-13 00:40:59 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-13 00:40:59 +0200 |
commit | 967dd61c946a23ede3c083d39ef1d077daffdbbb (patch) | |
tree | aa28839565cb18ffda001bd16b29ad5f1cc37fed /system/mlterm/doinst.sh | |
parent | 34a3c95984d9db494b804c0e64af04fd07fbed21 (diff) |
system/mlterm: Updated for version 2.9.4
Diffstat (limited to 'system/mlterm/doinst.sh')
-rw-r--r-- | system/mlterm/doinst.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/system/mlterm/doinst.sh b/system/mlterm/doinst.sh new file mode 100644 index 0000000000000..19a6ff6ac8545 --- /dev/null +++ b/system/mlterm/doinst.sh @@ -0,0 +1,13 @@ +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... +} + |