openbsd-ports/emulators/qemu-old/files/qemu-ifdown

15 lines
236 B
Plaintext
Raw Normal View History

#! /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