summaryrefslogtreecommitdiff
path: root/network/pptp/doinst.sh
diff options
context:
space:
mode:
authorAbortRetryFail <abortretryfail@gmail.com>2010-05-11 20:01:42 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-11 20:01:42 +0200
commitd4d1d6cb5828211146afb541ab33eb114f893326 (patch)
treeb5e77013724cff9e15ca7ab57870d99e4c1b48a8 /network/pptp/doinst.sh
parent77ec8dfec3015dd14ab7b0d8e4b54f08f388ee25 (diff)
downloadslackbuilds-d4d1d6cb5828211146afb541ab33eb114f893326.tar.gz
network/pptp: Added to 12.0 repository
Diffstat (limited to 'network/pptp/doinst.sh')
-rw-r--r--network/pptp/doinst.sh17
1 files changed, 17 insertions, 0 deletions
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
+