if ! grep "^utmp:" etc/group 1> /dev/null 2> /dev/null ; then
  if ! grep ":22:" etc/group 1> /dev/null 2> /dev/null ; then
    # we'll be adding this in the etc package anyway.
    echo "utmp::22:" >> etc/group
    # This should be able to handle itself...
    #chown root:utmp usr/sbin/utempter
  fi
fi
chown root:utmp var/run/utmp var/log/wtmp
chmod 664 var/run/utmp var/log/wtmp
( cd usr/lib ; rm -rf libutempter.so )
( cd usr/lib ; ln -sf libutempter.so.0 libutempter.so )
( cd usr/lib ; rm -rf libutempter.so.0 )
( cd usr/lib ; ln -sf libutempter.so.1.2.0 libutempter.so.0 )
( cd usr/man/man3 ; rm -rf libutempter.3.gz )
( cd usr/man/man3 ; ln -sf utempter.3.gz libutempter.3.gz )
( cd usr/man/man3 ; rm -rf utempter_add_record.3.gz )
( cd usr/man/man3 ; ln -sf utempter.3.gz utempter_add_record.3.gz )
( cd usr/man/man3 ; rm -rf utempter_remove_added_record.3.gz )
( cd usr/man/man3 ; ln -sf utempter.3.gz utempter_remove_added_record.3.gz )
( cd usr/man/man3 ; rm -rf utempter_remove_record.3.gz )
( cd usr/man/man3 ; ln -sf utempter.3.gz utempter_remove_record.3.gz )
( cd usr/man/man3 ; rm -rf utempter_set_helper.3.gz )
( cd usr/man/man3 ; ln -sf utempter.3.gz utempter_set_helper.3.gz )
