Re: RfC: Hurd console by default
On Thu, Mar 10, 2005 at 02:04:32AM +0100, Marcus Brinkmann wrote:
> This is not the point. The point is that you actually want to break
> out of it if you are indeed in an infinite loop. Because if you are
> in such a loop, then it is a bug that prevents anybody from logging
> in, and it is preferable to fall back to rescue mode (root login
> prompt on Mach console) than to keep spinning.
Something like this would probably be sufficient for the time being I
guess, it doesn't restart the console if the last restart was less then
three seconds ago:
TIMESTAMP=0
while (( `date +%s` - $TIMESTAMP > 3 )); do
TIMESTAMP=`date +%s`
console -d vga -d pc_kbd /dev/vcs
done
Actually, this works pretty well when started from the Mach console
after login, but it only starts the Hurd console once when put into
/libexec/runsystem and then drops into the Mach console no matter what.
Anybody know why? And does it look somewhat reasonable in general?
Michael
--
Michael Banck
Debian Developer
mbanck@debian.org
http://www.advogato.org/person/mbanck/diary.html
Reply to: