#!/bin/sh
# Clear old logs from /var/log/rootsh

if [ -f /etc/sysconfig/rootsh ]; then
  . /etc/sysconfig/rootsh
  if [ -n "$KEEPLOGS" ]; then
     find /var/log/rootsh -type f -mtime +$KEEPLOGS -delete
  fi
fi
