From ce02f222dfe867ca4668c42ecfb83b34a01d8596 Mon Sep 17 00:00:00 2001 From: DhabyX Date: Thu, 13 May 2010 01:00:09 +0200 Subject: network/noip2: Added to 13.0 repository --- network/noip2/doinst.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 network/noip2/doinst.sh (limited to 'network/noip2/doinst.sh') diff --git a/network/noip2/doinst.sh b/network/noip2/doinst.sh new file mode 100644 index 000000000000..c2154ed914c4 --- /dev/null +++ b/network/noip2/doinst.sh @@ -0,0 +1,15 @@ +# Handle configuration files +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... +} +# List of configuration files (they should end in .new) + +config etc/rc.d/rc.noip2.new -- cgit v1.2.3