aboutsummaryrefslogtreecommitdiff
path: root/network/wvdial/doinst.sh
diff options
context:
space:
mode:
authorMoritz Wilhelmy <moritz+slackware@wzff.de>2010-12-27 01:28:55 -0600
committerNiels Horn <niels.horn@slackbuilds.org>2010-12-27 20:06:58 -0200
commit5e393451a02da9fdffca24010b390564a82a4b28 (patch)
tree54442e42234c91ef3e72dbca264568bf36a18db8 /network/wvdial/doinst.sh
parentce9927e1f7f7f020f4a1ae4d227d4d5c06d371cd (diff)
network/wvdial: Added (ppp dialer app)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'network/wvdial/doinst.sh')
-rw-r--r--network/wvdial/doinst.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/network/wvdial/doinst.sh b/network/wvdial/doinst.sh
new file mode 100644
index 000000000000..2a50656fa994
--- /dev/null
+++ b/network/wvdial/doinst.sh
@@ -0,0 +1,17 @@
+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/wvdial.conf.new
+config etc/ppp/peers/wvdial-pipe.new
+config etc/ppp/peers/wvdial.new
+