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

Fix shutdown issue

parent 71aebb47
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
@@ -19,12 +19,21 @@ function checkNMI {
    echo "Received shutdown request through NMI.." > /dev/ttyS0

    /usr/syno/sbin/synoshutdown -s > /dev/null
    exit 0
    exit

  fi

}

finish() {

  echo "Shutting down agent.." > /dev/ttyS0
  exit

}

trap finish SIGINT SIGTERM

# Setup serialport

chmod 666 /dev/ttyS0