New Addons: qemu-ga 6.0.1 second try

>>> https://www.qemu.org/ <<<

source = https://download.qemu.org/qemu-6.0.1.tar.xz

Hi @ all

I have the addon qemu-ga for people who virtualize IPFire and to read the status
without having to install the whole qemu package.
Modified following Michael's suggestions.

Signed-off-by: Marcel Follert (Smooky) <smooky@v16.de>
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
smooky@v16.de
2022-01-14 21:41:32 +01:00
committed by Peter Müller
parent 21b0eff643
commit df0635abb5
7 changed files with 237 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
#!/bin/sh
# Begin $rc_base/init.d/qemu-guest-agent
. /etc/sysconfig/rc
. $rc_functions
case "$1" in
start)
boot_mesg "Starting QEMU Guest Agent..."
/usr/bin/qemu-ga -m virtio-serial -p /dev/virtio-ports/org.qemu.guest_agent.0 -f /run/qemu-ga.pid -d
evaluate_retval
;;
stop)
boot_mesg "Stopping QEMU Guest Agent..."
killproc /usr/bin/qemu-ga
;;
restart)
$0 stop
sleep 3
$0 start
;;
status)
statusproc /usr/bin/qemu-ga
;;
*)
echo "Usage: $0 {start|stop|restart|status}"
exit 1
;;
esac
# End $rc_base/init.d/qemu-guest-agent