aboutsummaryrefslogtreecommitdiff
path: root/network/open-isns/doinst.sh
blob: 8fad217bd664e5f8494402c0fc9a1062ab907fc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

config() {
  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 [ "$(md5sum <$OLD)" = "$(md5sum <$NEW)" ]; then
    # 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
config etc/isns/isnsadm.conf