summaryrefslogtreecommitdiff
path: root/network/open-isns/doinst.sh
diff options
context:
space:
mode:
Diffstat (limited to 'network/open-isns/doinst.sh')
-rw-r--r--network/open-isns/doinst.sh9
1 files changed, 5 insertions, 4 deletions
diff --git a/network/open-isns/doinst.sh b/network/open-isns/doinst.sh
index a14b0d3ab9..8fad217bd6 100644
--- a/network/open-isns/doinst.sh
+++ b/network/open-isns/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
@@ -13,4 +14,4 @@ config() {
config etc/isns/isnsd.conf
config etc/isns/isnsdd.conf
-config etc/isnsisnsadm.conf
+config etc/isns/isnsadm.conf