summaryrefslogtreecommitdiff
path: root/pcr/babeld/babeld.install
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-02-19 00:07:59 -0800
committerroot <root@rshg054.dnsready.net>2013-02-19 00:07:59 -0800
commitba105c9a82cf668f973a140c1792a3c02589980d (patch)
tree0d51d4e3e4e12ba33aa5f5da9e54458b8ec8cd0a /pcr/babeld/babeld.install
parent29883fd322e5c6464bf44e9eaa31b17790461bd0 (diff)
Tue Feb 19 00:07:54 PST 2013
Diffstat (limited to 'pcr/babeld/babeld.install')
-rw-r--r--pcr/babeld/babeld.install18
1 files changed, 18 insertions, 0 deletions
diff --git a/pcr/babeld/babeld.install b/pcr/babeld/babeld.install
new file mode 100644
index 000000000..686153617
--- /dev/null
+++ b/pcr/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
+}