summaryrefslogtreecommitdiffstats
path: root/bsp/meta-arm/meta-arm-autonomy/recipes-extended/xenguest/files/network-bridge.sh.in
blob: 2a360964789681163ea264567727d7186934bdc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
# This script is setting up a virtual network interface connected to the
# xenguest-network-bridge if NETWORK_BRIDGE is set to 1 in the guest params

guestname="${1}"

BRIDGE_NAME="###BRIDGE_NAME###"

# get guest parameters
. ./params.cfg

if [ "${NETWORK_BRIDGE:-}" = "1" ]; then
    echo "vif = ['${BRIDGE_NAME}']" >> ${guestname}.cfg
fi