diff options
author | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2012-10-25 20:08:15 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2012-10-25 20:08:15 -0300 |
commit | 8f2277af9c498ae63d9473b699949d851401caf7 (patch) | |
tree | b5e9a2e99a4e7a9f5e10e58fdc9eff0f3577e3ca /social/babeld/babeld.install | |
parent | aa59a87bb8860445bb3a4b233b44812b65b8c363 (diff) |
Adding babeld from abslibre
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 +} |