From 9ea447a1bba973afc55172d554ad1b690856788f Mon Sep 17 00:00:00 2001 From: Matteo Bernardini Date: Fri, 7 Sep 2012 19:39:04 +0200 Subject: libraries/libtirpc: Added (RPC library implementation). Signed-off-by: Matteo Bernardini --- libraries/libtirpc/doinst.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 libraries/libtirpc/doinst.sh (limited to 'libraries/libtirpc/doinst.sh') diff --git a/libraries/libtirpc/doinst.sh b/libraries/libtirpc/doinst.sh new file mode 100644 index 0000000000000..cc5dc4a3877a7 --- /dev/null +++ b/libraries/libtirpc/doinst.sh @@ -0,0 +1,14 @@ +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/netconfig.new -- cgit v1.2.3