watchdog: stop watchdog in emergency_shell
parent
5ffa0114c0
commit
407fbc9e13
|
|
@ -22,5 +22,6 @@ install() {
|
|||
inst_hook pre-pivot 99 "$moddir/watchdog.sh"
|
||||
inst_hook cleanup 00 "$moddir/watchdog.sh"
|
||||
inst_hook cleanup 99 "$moddir/watchdog.sh"
|
||||
inst_hook emergency 02 "$moddir/watchdog-stop.sh"
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -856,8 +856,6 @@ emergency_shell()
|
|||
fi
|
||||
[ -c "$_ctty" ] || _ctty=/dev/tty1
|
||||
strstr "$(setsid --help 2>/dev/null)" "ctty" && CTTY="-c"
|
||||
# stop watchdog
|
||||
echo 'V' > /dev/watchdog
|
||||
setsid $CTTY /bin/sh -i -l 0<$_ctty 1>$_ctty 2>&1
|
||||
fi
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in New Issue