summaryrefslogtreecommitdiff
path: root/network/vde2/doinst.sh
diff options
context:
space:
mode:
authorSean Donner <sean.donner@sbcglobal.net>2010-05-11 20:01:45 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-11 20:01:45 +0200
commit2f62f05d45b76d410ffdc91a6d3c1c413b7db759 (patch)
treed1693dda687153ae0b14be591ed24caa6ce89da0 /network/vde2/doinst.sh
parent31ed2c363fc98bc200244b4cf2356ccacf7e6771 (diff)
downloadslackbuilds-2f62f05d45b76d410ffdc91a6d3c1c413b7db759.tar.gz
network/vde2: Added to 12.0 repository
Diffstat (limited to 'network/vde2/doinst.sh')
-rw-r--r--network/vde2/doinst.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/network/vde2/doinst.sh b/network/vde2/doinst.sh
new file mode 100644
index 0000000000..d75f2a95fc
--- /dev/null
+++ b/network/vde2/doinst.sh
@@ -0,0 +1,16 @@
+#!/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/rc.d/rc.vde2.new
+