This can be done by the utmpset program.
To compile the utmpset program change to the runit package's source directory:
# cd /package/admin/runit/srcThe utmpset program cannot be used with the diet libc since it needs to be linked against libutil. Change conf-cc and conf-ld if necessary.
Then build and install the utmpset program:
# make utmpset # install -m0755 utmpset ../command/utmpsetFor each getty service, add a line to the corresponding run script like this:
#!/bin/sh /package/admin/runit/command/utmpset tty5 exec /sbin/getty 38400 tty5 linuxThis will cause the utmp record for line tty5 to be cleared before the getty is started; login accounting works as expected for this line.