-cat <<EOF
-
-The original XenServer scripts replaced by this package are not those
-of any supported version of XenServer. This could lead to unexpected
-behavior of your server. Unless you are sure you know what you are
-doing, it is highly recommended that you remove this package
-immediately after the install completes, which will restore the
-XenServer scripts that you were previously using.
-
-EOF
- fi
-fi
-
-# On XenServer 5.5.0, we need refresh-xs-network-uuids to run whenever
-# XAPI starts or restarts. (On XenServer 5.6.0, XAPI calls the
-# "update" method of the vswitch-cfg-update plugin whenever it starts
-# or restarts, so this is no longer necessary.)
-if test "$PRODUCT_VERSION" = "5.5.0"; then
- RNU=/usr/share/openvswitch/scripts/refresh-xs-network-uuids
- XSS=/opt/xensource/libexec/xapi-startup-script
- if test -e $XSS && (test ! -L $XSS || test "`readlink $XSS`" != $RNU); then
- echo "$XSS is already in use, refusing to overwrite"
- exit 1
- fi
- rm -f $XSS
- ln -s $RNU $XSS
-
- # If /etc/xensource/network.conf doesn't exist (it was added in 5.6.0),
- # then interface-reconfigure will be unhappy when we run it below.
- if test ! -e /etc/xensource/network.conf; then
- echo bridge > /etc/xensource/network.conf
- fi
-fi
-
-
-if test ! -e /var/xapi/network.dbcache; then
- if test "$1" = 1; then
- printf "Creating xapi database cache... "
- else
- printf "warning: Open vSwitch is being re-installed or upgraded,\n"
- printf " but the xapi database cache is missing.\n"
- printf "Re-creating xapi database cache... "