diff options
author | Erik Hanson <erik@slackbuilds.org> | 2010-05-12 23:28:07 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-12 23:28:07 +0200 |
commit | dcbacb728a402b893d174ae1a8f0f8cfe3d2ad22 (patch) | |
tree | 8678704379e9c1c0d6a3e69213e076c1c1285969 /audio/ocp/doinst.sh | |
parent | 8d9e3ec6ccd06c8f3ce4f566065d046827be14c5 (diff) | |
download | slackbuilds-dcbacb728a402b893d174ae1a8f0f8cfe3d2ad22.tar.gz |
audio/ocp: Added to 12.2 repository
Diffstat (limited to 'audio/ocp/doinst.sh')
-rw-r--r-- | audio/ocp/doinst.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/audio/ocp/doinst.sh b/audio/ocp/doinst.sh new file mode 100644 index 0000000000..2639e182df --- /dev/null +++ b/audio/ocp/doinst.sh @@ -0,0 +1,15 @@ +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/ocp.ini.new + |