network/open-isns: Update script.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
67f5f857da
commit
f304ce3885
|
@ -1,10 +1,11 @@
|
||||||
|
|
||||||
config() {
|
config() {
|
||||||
NEW="$1"
|
NEW="${1}.new"
|
||||||
OLD="$(dirname $NEW)/$(basename $NEW .new)"
|
OLD="$1"
|
||||||
# If there's no config file by that name, mv it over:
|
# If there's no config file by that name, mv it over:
|
||||||
if [ ! -r $OLD ]; then
|
if [ ! -r $OLD ]; then
|
||||||
mv $NEW $OLD
|
mv $NEW $OLD
|
||||||
elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
|
elif [ "$(md5sum <$OLD)" = "$(md5sum <$NEW)" ]; then
|
||||||
# toss the redundant copy
|
# toss the redundant copy
|
||||||
rm $NEW
|
rm $NEW
|
||||||
fi
|
fi
|
||||||
|
@ -13,4 +14,4 @@ config() {
|
||||||
|
|
||||||
config etc/isns/isnsd.conf
|
config etc/isns/isnsd.conf
|
||||||
config etc/isns/isnsdd.conf
|
config etc/isns/isnsdd.conf
|
||||||
config etc/isnsisnsadm.conf
|
config etc/isns/isnsadm.conf
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
|
|
||||||
PRGNAM=open-isns
|
PRGNAM=open-isns
|
||||||
VERSION=${VERSION:-0.99}
|
VERSION=${VERSION:-0.99}
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-2}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
|
|
||||||
if [ -z "$ARCH" ]; then
|
if [ -z "$ARCH" ]; then
|
||||||
|
|
Loading…
Reference in New Issue