diff options
author | Erik Hanson <erik@slackbuilds.org> | 2010-05-11 15:18:41 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-11 15:18:41 +0200 |
commit | 1975d4a1ec58b490155aa999ac6be190de4cdf0d (patch) | |
tree | 2dd7f3f26664780a0ed8a662b196ea49a06a5e13 /system/multitail/doinst.sh | |
parent | ee6d106d6a907b3e155bf44ee6a8d9a561a8b74a (diff) | |
download | slackbuilds-1975d4a1ec58b490155aa999ac6be190de4cdf0d.tar.gz |
system/multitail: Initial import
Diffstat (limited to 'system/multitail/doinst.sh')
-rw-r--r-- | system/multitail/doinst.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/system/multitail/doinst.sh b/system/multitail/doinst.sh new file mode 100644 index 0000000000..9902d73847 --- /dev/null +++ b/system/multitail/doinst.sh @@ -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/multitail.conf.new + |