diff --git a/sh/runscript.sh.in b/sh/runscript.sh.in index 229d1ee..2459091 100644 --- a/sh/runscript.sh.in +++ b/sh/runscript.sh.in @@ -16,6 +16,16 @@ sourcex() fi } +if [ ! -e ${RC_SVCDIR}/softlevel ]; then + ewarn + ewarn "You are attempting to run an openrc service on a" + ewarn "system which openrc did not boot." + ewarn "You may be inside a chroot or you may have used" + ewarn "another initialization system to boot this system." + ewarn "In this situation, you will get unpredictable results!" + ewarn +fi + sourcex "@SYSCONFDIR@/init.d/functions.sh" sourcex "@LIBEXECDIR@/sh/rc-functions.sh"