Allow for gracefull shutdows
This commit is contained in:
parent
41090b3287
commit
f71660e471
1 changed files with 1 additions and 1 deletions
2
power.sh
2
power.sh
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue