diff options
author | Omar Vega Ramos <ovruni@gnu.org.pe> | 2013-02-18 17:31:52 -0500 |
---|---|---|
committer | Omar Vega Ramos <ovruni@gnu.org.pe> | 2013-02-18 17:31:52 -0500 |
commit | 0be78807ac1a050c88f847ef0e36f5cd4d9b5725 (patch) | |
tree | ba2266308391192112ed3a843f144a2d33d59d97 /pcr/babeld/babeld.install | |
parent | 4d8ea59baa9963ebbca29b35c9a7ceb914119376 (diff) | |
download | abslibre-0be78807ac1a050c88f847ef0e36f5cd4d9b5725.tar.gz abslibre-0be78807ac1a050c88f847ef0e36f5cd4d9b5725.tar.bz2 abslibre-0be78807ac1a050c88f847ef0e36f5cd4d9b5725.zip |
Adding packages to pcr
Diffstat (limited to 'pcr/babeld/babeld.install')
-rw-r--r-- | pcr/babeld/babeld.install | 18 |
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 +} |