summaryrefslogtreecommitdiff
path: root/emulators/qemu/files/qemu-ifdown
blob: fbd5789210c589d08848b95c12e93e771526dea8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#! /bin/sh

_ETHER=trunk0
_BRIDGE=bridge0

# Let the environment over-ride this
[ "$BRIDGE" ] || BRIDGE=${_BRIDGE}
[ "$ETHER" ] || ETHER=${_ETHER}

if test `id -u` -ne 0; then
	DOAS=doas
fi

$DOAS ifconfig $BRIDGE del $1 > /dev/null 2>&1