2019-04-12 23:00:38 +08:00
|
|
|
|
2019-01-24 08:56:10 +08:00
|
|
|
config() {
|
2019-04-12 23:00:38 +08:00
|
|
|
NEW="${1}.new"
|
|
|
|
OLD="$1"
|
2019-01-24 08:56:10 +08:00
|
|
|
# If there's no config file by that name, mv it over:
|
|
|
|
if [ ! -r $OLD ]; then
|
|
|
|
mv $NEW $OLD
|
2019-04-12 23:00:38 +08:00
|
|
|
elif [ "$(md5sum <$OLD)" = "$(md5sum <$NEW)" ]; then
|
2019-01-24 08:56:10 +08:00
|
|
|
# toss the redundant copy
|
|
|
|
rm $NEW
|
|
|
|
fi
|
|
|
|
# Otherwise, we leave the .new copy for the admin to consider...
|
|
|
|
}
|
|
|
|
|
|
|
|
config etc/isns/isnsd.conf
|
|
|
|
config etc/isns/isnsdd.conf
|
2019-04-12 23:00:38 +08:00
|
|
|
config etc/isns/isnsadm.conf
|