diff options
author | P. J. McDermott <pj@pehjota.net> | 2014-06-03 12:31:09 (EDT) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2014-06-03 12:31:09 (EDT) |
commit | 3f68144b1905b7be098ffed4de25969a319021c6 (patch) | |
tree | ca1457cd30f3faca9f8d068f3c9256391c84921e /src.etc/init.d | |
parent | 7cedbfaf515dc7ab2f98d0b77c6830fa3eed5d86 (diff) |
/etc/init.d/rc: Split up /etc/rc.d/ patterns.
(mini)prokit will put a service script in position S10 that will
generate links in positions S20 and later. So rc needs to be able to
find the new links after running the S10 link.
Diffstat (limited to 'src.etc/init.d')
-rwxr-xr-x | src.etc/init.d/rc | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src.etc/init.d/rc b/src.etc/init.d/rc index f643de2..0c81e9e 100755 --- a/src.etc/init.d/rc +++ b/src.etc/init.d/rc @@ -22,6 +22,11 @@ case ${level} in ;; esac -for i in /etc/rc.d/${level}*; do - [ -x "${i}" ] && "${i}" ${action} 2>&1 -done | ${logger} +{ + for i in /etc/rc.d/${level}[0-1]*; do + [ -x "${i}" ] && "${i}" ${action} 2>&1 + done + for i in /etc/rc.d/${level}[2-9]*; do + [ -x "${i}" ] && "${i}" ${action} 2>&1 + done +} | ${logger} |