From 5367554b70bf3129e1dd4ccd5f303d13951086d5 Mon Sep 17 00:00:00 2001 From: Vincent Batts Date: Tue, 11 May 2010 20:00:41 +0200 Subject: libraries/barry: Added to 12.0 repository --- libraries/barry/doinst.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 libraries/barry/doinst.sh (limited to 'libraries/barry/doinst.sh') diff --git a/libraries/barry/doinst.sh b/libraries/barry/doinst.sh new file mode 100644 index 0000000000..f1bc12fcd3 --- /dev/null +++ b/libraries/barry/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/modprobe.d/barry.new + -- cgit v1.2.3