mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-06-08 01:18:32 +08:00
Fix shutdown issue
This commit is contained in:
parent
eb30a4d66f
commit
7208cec5cb
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user