From f28007bfe3ee8ffbf0706b2527df680a0d0a1e3a Mon Sep 17 00:00:00 2001 From: Wayne Cuddy Date: Fri, 5 Apr 2019 07:26:33 +0700 Subject: network/open-iscsi: Fix doinst.sh. Signed-off-by: Willy Sudiarto Raharjo --- network/open-iscsi/doinst.sh | 7 ++++--- network/open-iscsi/open-iscsi.SlackBuild | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/network/open-iscsi/doinst.sh b/network/open-iscsi/doinst.sh index fea2bd9101..718295b2e7 100644 --- a/network/open-iscsi/doinst.sh +++ b/network/open-iscsi/doinst.sh @@ -1,10 +1,11 @@ + config() { - NEW="$1" - OLD="$(dirname $NEW)/$(basename $NEW .new)" + NEW="${1}.new" + OLD="$1" # 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 + elif [ "$(md5sum <$OLD)" = "$(md5sum <$NEW)" ]; then # toss the redundant copy rm $NEW fi diff --git a/network/open-iscsi/open-iscsi.SlackBuild b/network/open-iscsi/open-iscsi.SlackBuild index 415a6016dc..00883e1321 100644 --- a/network/open-iscsi/open-iscsi.SlackBuild +++ b/network/open-iscsi/open-iscsi.SlackBuild @@ -24,7 +24,7 @@ PRGNAM=open-iscsi VERSION=${VERSION:-2.0.875} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then -- cgit v1.2.3