also sprach Petter Reinholdtsen <[EMAIL PROTECTED]> [2006.11.26.1755 +0000]: > It fetches the info from utmp. Perhaps that file have incorrect > information in it? I suspect runlevel 'S' isn't treated by init > as a real runlevel, and this make who and runlevel believe the > current runlevel is the runlevel used before the last reboot, aka > runlevel 6. > > Any ideas how we can change this to return more sensible values? > It is hard to write to utmp at the start of the rcS.d/ run, as > /var/log/utmp isn't writable (and perhaps not even available) at > that time in the boot.
I can't help but think that a simple hack like switch (prev_runtime) { case 0: case 6: prev_runtime = 'N'; break; default: break; } would solve the problem. -- .''`. martin f. krafft <[EMAIL PROTECTED]> : :' : proud Debian developer, author, administrator, and user `. `'` http://people.debian.org/~madduck - http://debiansystem.info `- Debian - when you have better things to do than fixing systems
signature.asc
Description: Digital signature (GPG/PGP)