diff --git a/gentooup.sh b/gentooup.sh index 08361dc..686b07c 100755 --- a/gentooup.sh +++ b/gentooup.sh @@ -130,7 +130,7 @@ if [[ $(qlist -I gentoo-sources) != "" ]] ; then emerge "${PORTAGE_OPTIONS[@]}" --deselect gentoo-sources:"${CURRENTKERNELVERSION/"-gentoo"/}" fi -if [[ -n "$(which restart_services)" ]] ; then +if [[ -n "$(which restart_services)" && $CHROOTED == "1" ]] ; then restart_services -l fi echo "Started at $STARTDATE"