diff options
author | root <root@rshg054.dnsready.net> | 2012-10-26 02:26:56 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-10-26 02:26:56 -0700 |
commit | ff20b83d60041f745a579e10770706b0b49d5617 (patch) | |
tree | 715ba7ce7d40655e756c284d0875b27da39796e6 /social/babeld/babeld.install | |
parent | a3b55a0c47a00ac40bc00a4ce87d93f809273840 (diff) |
Fri Oct 26 02:24:09 PDT 2012
Diffstat (limited to 'social/babeld/babeld.install')
-rw-r--r-- | social/babeld/babeld.install | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/social/babeld/babeld.install b/social/babeld/babeld.install new file mode 100644 index 000000000..686153617 --- /dev/null +++ b/social/babeld/babeld.install @@ -0,0 +1,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 +} |