summaryrefslogtreecommitdiff
path: root/xenserver/etc_xensource_scripts_vif
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@citrix.com>2010-04-01 10:45:22 +0100
committerBen Pfaff <blp@nicira.com>2010-04-01 09:21:51 -0700
commit2c0f11dc7e66e10257ef927574a99d5f888c774c (patch)
treefa24ee7aad9d3ba5f04f8ba2807de8f2d3630b8a /xenserver/etc_xensource_scripts_vif
parent7730bd8fde61da83fefaaee062b66c02332ff28e (diff)
downloadopenvswitch-2c0f11dc7e66e10257ef927574a99d5f888c774c.tar.gz
xenserver: strip all alpha-suffixes from the xenserver build number.
The letter at the end of the build number indicates the site where the build was done. All publicly released builds come from "p" but within Citrix we have other suffixes (i.e. in Cambridge we get c). Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'xenserver/etc_xensource_scripts_vif')
-rwxr-xr-xxenserver/etc_xensource_scripts_vif2
1 files changed, 1 insertions, 1 deletions
diff --git a/xenserver/etc_xensource_scripts_vif b/xenserver/etc_xensource_scripts_vif
index 1a38dc4c9..240cb7098 100755
--- a/xenserver/etc_xensource_scripts_vif
+++ b/xenserver/etc_xensource_scripts_vif
@@ -28,7 +28,7 @@ vsctl="/usr/bin/ovs-vsctl"
# XAPI before build 29381 (approximately) did not provide some of the
# data in XenStore that we rely on.
. /etc/xensource-inventory
-if test "$PRODUCT_VERSION" = "5.5.0" || test "${BUILD_NUMBER%p}" -le 26131
+if test "$PRODUCT_VERSION" = "5.5.0" || test "${BUILD_NUMBER%[a-z]}" -le 26131
then
xs550=true
else