summaryrefslogtreecommitdiff
path: root/network/dillo/doinst.sh
diff options
context:
space:
mode:
authorMartin Lefebvre <dadexter@gmail.com>2010-05-11 15:01:26 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-11 15:01:26 +0200
commitf64750f981a5800dc6347c6c68d28004ce949dfc (patch)
tree16e93ea3dab9bfee22d5003a6d0a3a88f065d457 /network/dillo/doinst.sh
parentc02270d50c871f9d194b60301fa6083e2e1d3cc6 (diff)
downloadslackbuilds-f64750f981a5800dc6347c6c68d28004ce949dfc.tar.gz
network/dillo: Initial import
Diffstat (limited to 'network/dillo/doinst.sh')
-rw-r--r--network/dillo/doinst.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/network/dillo/doinst.sh b/network/dillo/doinst.sh
new file mode 100644
index 0000000000..fdf3c6249e
--- /dev/null
+++ b/network/dillo/doinst.sh
@@ -0,0 +1,15 @@
+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/dillorc.new
+config etc/dpidrc.new