mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-13 20:42:58 +02:00
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:
committed by
Peter Müller
parent
21b0eff643
commit
df0635abb5
38
src/initscripts/packages/qemu-ga
Executable file
38
src/initscripts/packages/qemu-ga
Executable 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
|
||||
Reference in New Issue
Block a user