#!/bin/sh
#
#    Copyright (c) 2008-2009 Brocade Communications Systems, Inc.
#    All rights reserved.
#
#    File name:   rmcf_cleanup
#    Module name: utils/raslog
#
#    This script will remove files that don't belong to any packages
#       in the primary partition, excluding a list of known loose
#       files - files that don't belong to any packages by default.
#
#	It also cleans up the core files.
#       It can not remove files in the secondary partition.
#
#
#
 
PATH=/bin:/usr/bin:/sbin:/usr/sbin

do_cleanup_core()                            
{ 
	/sbin/core_tidy -p 60 2&>1 1>/dev/null
}

do_cleanup_fwdl()                            
{
	/sbin/cleanup 2&>1 1>/dev/null 
}

#
# main routine
#

do_cleanup_core
do_cleanup_fwdl
