summaryrefslogtreecommitdiff
path: root/social/babeld/babeld.install
blob: 686153617d1dccff8591ed9177115c4f6c018503 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
compatibility_warning() {
  echo "PLEASE NOTE:"
  echo " "
  echo "-------------------------------------------------------------"
  echo " This version uses the IANA-allocated UDP port and multicast"
  echo " group and is therefore incompatible with older versions."
  echo "-------------------------------------------------------------"
}

post_upgrade() {
  major=$(echo $2 | cut -d '.' -f1)
  minor=$(echo $2 | cut -d '.' -f2)
  if [ $major -lt 1 ]; then
    compatibility_warning
  elif [ $major -eq 1 -a $minor -lt 1 ]; then
    compatibility_warning
  fi	
}