@@ -, +, @@ --- ChangeLog | 6 ++++++ modules/rc.eselect | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) --- a/ChangeLog +++ a/ChangeLog @@ -1,3 +1,9 @@ +2015-01-17 Ulrich Müller + + * modules/rc.eselect: Be compatible with new OpenRC, bug 536822. + (is_script): Test for "openrc-run" or "runscript" in shebang line. + (run_runscript): Omit the interpreter when executing the script. + 2014-09-01 Ulrich Müller * configure.ac: Update version to 1.4.3. --- a/modules/rc.eselect +++ a/modules/rc.eselect @@ -37,7 +37,7 @@ is_script() { && ${file%%.sh} = ${file} \ && ${file%%\~} = ${file} \ && -e ${file} ]] \ - && grep "^#\!/sbin/runscript" "${file}" &>/dev/null + && grep '^#!.*/\(runscript\|openrc-run\)' "${file}" &>/dev/null } # find_scripts PRIVATE @@ -92,7 +92,7 @@ run_runscript() { shift for script; do is_script "${EROOT}/etc/init.d/${script}" \ - && /sbin/runscript "${EROOT}/etc/init.d/${script}" "${command}" + && "${EROOT}/etc/init.d/${script}" "${command}" done } --