aboutsummaryrefslogtreecommitdiff
path: root/network/open-iscsi
diff options
context:
space:
mode:
authorWayne Cuddy <wcuddy@gmail.com>2019-04-05 07:26:33 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2019-04-05 07:39:04 +0700
commitf28007bfe3ee8ffbf0706b2527df680a0d0a1e3a (patch)
treec4e891ffcfa76153e8de3498334e19f216799e58 /network/open-iscsi
parent2d09fee83c5f12fa7b3fd0e8b51aba4d3f9e1bba (diff)
network/open-iscsi: Fix doinst.sh.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/open-iscsi')
-rw-r--r--network/open-iscsi/doinst.sh7
-rw-r--r--network/open-iscsi/open-iscsi.SlackBuild2
2 files changed, 5 insertions, 4 deletions
diff --git a/network/open-iscsi/doinst.sh b/network/open-iscsi/doinst.sh
index fea2bd9101675..718295b2e76f0 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 415a6016dce45..00883e1321070 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