From d4d1d6cb5828211146afb541ab33eb114f893326 Mon Sep 17 00:00:00 2001 From: AbortRetryFail Date: Tue, 11 May 2010 20:01:42 +0200 Subject: network/pptp: Added to 12.0 repository --- network/pptp/doinst.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 network/pptp/doinst.sh (limited to 'network/pptp/doinst.sh') diff --git a/network/pptp/doinst.sh b/network/pptp/doinst.sh new file mode 100644 index 0000000000..3e64e4f38e --- /dev/null +++ b/network/pptp/doinst.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +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/ppp/options.pptp.new + -- cgit v1.2.3