Allow for gracefull shutdows

This commit is contained in:
Kroese 2023-04-10 21:13:28 +02:00 committed by GitHub
parent 41090b3287
commit f71660e471

View File

@ -12,7 +12,7 @@ _QEMU_SHUTDOWN_COUNTER=/run/qemu.counter
_trap(){
func="$1" ; shift
for sig ; do
trap "$func $sig" "$sig"
trap '$func $sig' "$sig"
done
}