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