openbsd-ports/emulators/qemu/files/qemu-ifdown
giovanni 7db3aed3f1 Change qemu scripts after brconfig(4) has gone in the attic,
fix homepage and master_site (upstream does not provide old versions
anymore).
ok todd@ (Maintainer)
2010-01-07 14:15:17 +00:00

15 lines
236 B
Bash

#! /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
SUDO=sudo
fi
$SUDO ifconfig $brif del $1 > /dev/null 2>&1