mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2026-11-11 08:42:42 +01:00
NMI handler
This commit is contained in:
1 parent
d7c39590f4
commit
104265396c
1 file changed
+2
-2
+2
-2
@@ -6,7 +6,7 @@ set -u
|
||||
function checkNMI {
|
||||
|
||||
local nmi
|
||||
nmi=$(cat /proc/interrupts | grep NMI | sed 's/[^0-9]*//g' | sed 's/^0*//')
|
||||
nmi=$(cat /proc/interrupts | grep NMI | sed 's/[^1-9]*//g')
|
||||
|
||||
if [ "$nmi" != "" ]; then
|
||||
|
||||
@@ -21,7 +21,7 @@ function checkNMI {
|
||||
|
||||
finish() {
|
||||
|
||||
echo "Shutting down Guest Agent.." > /dev/ttyS0
|
||||
echo "Shutting down guest agent.." > /dev/ttyS0
|
||||
exit
|
||||
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user