On Fri, Mar 17, 2017 at 01:10:55PM +0100, Karel Zak wrote: > Maybe it would be better to remember already read bytes within agetty > rather than use TIOCSTI. Implemented, please test: git clone git://git.kernel.org/pub/scm/utils/util-linux/util-linux.git cd util-linux ./autogen.sh ./configure make agetty sudo cp /sbin/agetty /sbin/agetty.org sudo cp agetty /sbin/agetty .. you will probably need to stop already running agetty(s) before the sudo commands, and start after cp(1). (for example "systemctl stop/stop getty@tty*" on Fedora). Thanks! 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