ports/emulators/qemu/files/qemu-ifdown

15 lines
238 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
#! /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