This file is indexed.

config is in xcp-networkd 1.3.2-5.

This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh

set -e

action=$1
version=$2

. /usr/share/debconf/confmodule
db_version 2.0

# Get the values from the config file
if [ -r /etc/xcp/network.conf ] ; then
	NETWORK_TYPE=`cat /etc/xcp/network.conf`
fi

# This controls the default behavior, which here will be openvswitch.
# Invert words bridge and openvswitch to change this.
if ! [ "${NETWORK_TYPE}" = "bridge" ] ; then
	NETWORK_TYPE="openvswitch"
fi

db_set xcp-xapi/networking_type ${NETWORK_TYPE}
db_input high xcp-xapi/networking_type || true
db_go



exit 0;