diff options
Diffstat (limited to 'sys-apps/openrc/openrc-0.1.ebuild')
-rw-r--r-- | sys-apps/openrc/openrc-0.1.ebuild | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys-apps/openrc/openrc-0.1.ebuild b/sys-apps/openrc/openrc-0.1.ebuild index 5cbb5d2..452a6fd 100644 --- a/sys-apps/openrc/openrc-0.1.ebuild +++ b/sys-apps/openrc/openrc-0.1.ebuild @@ -76,11 +76,10 @@ pkg_preinst() { fi # Upgrade out state for baselayout-1 users - if [ ! -e "${ROOT}${LIBDIR}"/init.d/started \ - -a -e "${ROOT}"etc/conf.d/rc ]; then + if [ ! -e "${ROOT}${LIBDIR}"/init.d/started ]; then ( - . "${ROOT}etc/conf.d/rc" - svcdir="${svcdir:-/var/lib/init.d}" + [ -e "${ROOT}"etc/conf.d/rc ] && . "${ROOT}etc/conf.d/rc" + svcdir=${svcdir:-/var/lib/init.d} if [ ! -d "${ROOT}${svcdir}/started" ]; then ewarn "No state found, and no state exists" elog "You should reboot this host" |