From 3f68144b1905b7be098ffed4de25969a319021c6 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Tue, 03 Jun 2014 12:31:09 -0400 Subject: /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. --- 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} -- cgit v0.9.1