From dcbacb728a402b893d174ae1a8f0f8cfe3d2ad22 Mon Sep 17 00:00:00 2001 From: Erik Hanson Date: Wed, 12 May 2010 23:28:07 +0200 Subject: audio/ocp: Added to 12.2 repository --- audio/ocp/doinst.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 audio/ocp/doinst.sh (limited to 'audio/ocp/doinst.sh') 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 + -- cgit v1.2.3