#simple hack to remove old cache before it becomes a problem  
#PREPARE doesn't know version, atleast old version is covered by "prune" 
NUMBER="$(grep VERSION= $SCRIPT_DIRECTORY/DETAILS | cut -d= -f2)" 
OLDCACHE="$INSTALL_CACHE/$SPELL-$NUMBER-$BUILD.tar.bz2" 
if [ -f $OLDCACHE ] ;
then rm -rf $OLDCACHE
fi &&
message "${SPELL_COLOR} ${SPELL} won't ARCHIVE installed files${DEFAULT_COLOR}"

### soundcore test
if [ -e /proc/config.gz ] ; then
	if [ `zgrep -c 'CONFIG_SOUND is not set' /proc/config.gz` = 1 ] ; then
	    message "${SPELL_COLOR} You *must* configure your kernel with CONFIG_SOUND on${DEFAULT_COLOR}"
	    exit 
	fi
elif [ `grep -c 'CONFIG_SOUND is not set' /etc/sorcery/local/kernel.config` = 1 ] ; then
    message "${SPELL_COLOR} You *must* configure your kernel with CONFIG_SOUND on${DEFAULT_COLOR}"
    exit 
fi
