#!/bin/sh

# Archive the old wtmp and start a new one.

WTMP=/var/log/wtmp

if [ -s $WTMP ]
then
    mv -f $WTMP ${WTMP}.0
    umask 022
    touch $WTMP
    chown root:root $WTMP
fi
