1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-29 01:13:08 +00:00

sysutils/bhyve-rc: Fix writing to /dev/null in rc script

(cherry picked from commit 00ee9c96c6)
This commit is contained in:
Bryan Drewery 2022-06-16 13:52:33 -07:00
parent 3aa8bee7b3
commit 51406dd587
2 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
# Created by: Michael Gmelin <freebsd@grem.de>
PORTNAME= bhyve-rc
PORTVERSION= 3
PORTVERSION= 4
CATEGORIES= sysutils
MASTER_SITES= # none
DISTFILES= # none

View File

@ -120,7 +120,7 @@ bhyve_status()
bhyve_poll()
{
echo -n "Waiting for session: ${_session}"
while ${command} has-session -t ${_session} 2>dev/null; do
while ${command} has-session -t ${_session} 2>/dev/null; do
sleep 1
done
echo
@ -131,7 +131,7 @@ bhyve_stop()
if ${command} has-session -t ${_session} 2>/dev/null; then
echo "Stopping ${_session}."
${command} kill-session -t ${_session}
while ${command} has-session -t ${_session} 2>dev/null; do
while ${command} has-session -t ${_session} 2>/dev/null; do
sleep 1
done
fi