watchdog: stop watchdog in emergency_shell

master
Harald Hoyer 2012-06-27 17:06:23 +02:00
parent 5ffa0114c0
commit 407fbc9e13
2 changed files with 1 additions and 2 deletions

View File

@ -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"
}


View File

@ -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