12 lines
300 B
Bash
Executable file
12 lines
300 B
Bash
Executable file
#!/bin/sh
|
|
# Create and activate the bridge network. Requires root.
|
|
set -eu
|
|
. "$(dirname "$0")/env.sh"
|
|
|
|
"$QEMU_VM" network create "$NETWORK" \
|
|
--type bridge \
|
|
--bridge "$BRIDGE" \
|
|
--gateway "$GATEWAY" \
|
|
--subnet "$SUBNET" 2>/dev/null || true
|
|
|
|
exec "$QEMU_VM" network setup "$NETWORK"
|