diff options
author | AbortRetryFail <abortretryfail@gmail.com> | 2010-05-11 20:01:42 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-11 20:01:42 +0200 |
commit | d4d1d6cb5828211146afb541ab33eb114f893326 (patch) | |
tree | b5e77013724cff9e15ca7ab57870d99e4c1b48a8 /network/pptp/doinst.sh | |
parent | 77ec8dfec3015dd14ab7b0d8e4b54f08f388ee25 (diff) | |
download | slackbuilds-d4d1d6cb5828211146afb541ab33eb114f893326.tar.gz |
network/pptp: Added to 12.0 repository
Diffstat (limited to 'network/pptp/doinst.sh')
-rw-r--r-- | network/pptp/doinst.sh | 17 |
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 + |