Unverified Commit d91a87d1 authored by Kroese's avatar Kroese Committed by GitHub
Browse files

Update power.sh

parent a7c1936f
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -119,6 +119,7 @@ _graceful_shutdown() {
  local sig="$1"
  local pid=""
  local code=0
  local app="$(app)"

  case "$sig" in
    SIGHUP)  code=129 ;;
@@ -137,9 +138,6 @@ _graceful_shutdown() {
  touch "$QEMU_END"
  echo && info "Received $1, sending ACPI shutdown signal..."

  local pid=""
  local app="$(app)"

  if [ ! -s "$QEMU_PID" ] || ! read -r pid <"$QEMU_PID"; then
    warn "QEMU PID file ($QEMU_PID) does not exist?"
    finish "$code"