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

This commit is contained in:
Bryan Drewery 2022-06-16 13:52:33 -07:00
parent f23967b979
commit 00ee9c96c6
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