On Fri, Oct 12, 2012 at 04:07:57PM +0200, Dr. Werner Fink wrote: > > Time... (the patch is one huge rewrite, I'd like to split it to more > > patches). I'm busy with some others things, so next week. > > Yep, this missing feature is also known here ;) > Maybe the attached patch help as it only adds the /proc/consoles and > /sys/class/tty/ scanner into common lib and leave sulogin untouched. > > The integration into sulogin.c could then be done later Good idea. I have merged the lib/consoles.c with some changes: - removed all global variables - refactoring (one separate function for each detection method) - add debug messages - fix some disadvantages - add small test program Now we need a patch(s) for sulogin.c. It should be relatively simple task as we already have Philipp's prototype. http://www.spinics.net/lists/util-linux-ng/msg06916.html Any suggestion how to test the code? Karel -- Karel Zak <kzak@xxxxxxxxxx> http://karelzak.blogspot.com -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html