#!/bin/sh
#
# $NetBSD: qemu-guest-agent.sh,v 1.3 2025/03/25 09:01:20 kim Exp $
#
# PROVIDE: qemu_guest_agent
# REQUIRE: DAEMON
#

if [ -f /etc/rc.subr ]; then
	. /etc/rc.subr
fi

name="qemu_guest_agent"
rcvar="${name}"
command="/usr/pkg/bin/qemu-ga"
command_args="-d -m isa-serial -p /dev/tty00 -r -t /var/run -f /var/run/${name}.pid"

load_rc_config $name
run_rc_command "$1"
