Lines 37-43
is_script() {
Link Here
|
37 |
&& ${file%%.sh} = ${file} \ |
37 |
&& ${file%%.sh} = ${file} \ |
38 |
&& ${file%%\~} = ${file} \ |
38 |
&& ${file%%\~} = ${file} \ |
39 |
&& -e ${file} ]] \ |
39 |
&& -e ${file} ]] \ |
40 |
&& grep "^#\!/sbin/runscript" "${file}" &>/dev/null |
40 |
&& grep '^#!.*/\(runscript\|openrc-run\)' "${file}" &>/dev/null |
41 |
} |
41 |
} |
42 |
|
42 |
|
43 |
# find_scripts PRIVATE |
43 |
# find_scripts PRIVATE |
Lines 92-98
run_runscript() {
Link Here
|
92 |
shift |
92 |
shift |
93 |
for script; do |
93 |
for script; do |
94 |
is_script "${EROOT}/etc/init.d/${script}" \ |
94 |
is_script "${EROOT}/etc/init.d/${script}" \ |
95 |
&& /sbin/runscript "${EROOT}/etc/init.d/${script}" "${command}" |
95 |
&& "${EROOT}/etc/init.d/${script}" "${command}" |
96 |
done |
96 |
done |
97 |
} |
97 |
} |
98 |
|
98 |
|
99 |
- |
|
|