From f64750f981a5800dc6347c6c68d28004ce949dfc Mon Sep 17 00:00:00 2001 From: Martin Lefebvre Date: Tue, 11 May 2010 15:01:26 +0200 Subject: network/dillo: Initial import --- network/dillo/doinst.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 network/dillo/doinst.sh (limited to 'network/dillo/doinst.sh') 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 -- cgit v1.2.3