diff --git a/data/calculate b/data/calculate index 4f350a8..b320228 100644 --- a/data/calculate +++ b/data/calculate @@ -125,12 +125,7 @@ stop() { if [[ $roottype == "hdd" ]] && rc-config list boot | grep -q calculate then rc-update del calculate boot - # remove needless files (videodrivers dist archives, user caches) local distdir="/usr/portage/distfiles" - local cachedir="/var/cache/calculate" - for removedir in $distdir $cachedir - do - [[ -d "${removedir}" ]] && [[ -n "`ls ${removedir}`" ]] && rm ${removedir}/* - done + [[ -d "${distdir}" ]] && [[ -n "`ls ${distdir}`" ]] && rm ${distdir}/* fi }