On Aug 26, 2013 8:41 AM, "Mark David Dumlao" <[email protected]> wrote: > > On Sun, Aug 25, 2013 at 12:54 PM, <[email protected]> wrote: > > Hi Mark, hi William, > > > > the script ds3231 in /etc/init.d is -- according to rc-update -- > > set as folows: > > > > ds3231 | boot > > Long and short of it, here's the boot order: > sysinit -> boot -> (single) -> default > > rc(8) tells me that sysinit is for bringing up system specific stuff > such as /dev, /proc, /sys. So it's appropriate for a special device > file such as yours, with the caveat that you want it up AFTER any > dependencies such as sysfs. > > Now how to do that is to make your script openrc compliant, so... > > > > > There is no corresponding file in /etc/conf.d since the script > > onlu consist of two commands (see previous posting). There is no > > initramfs. > > Since openrc is running your script, it will check /etc/conf.d/same-name > for any script with environment variables. Or you can put it in the init > script itself. Mind you, I don't know where to find documentation on > how openrc implements this, unlike, say, some controversial init system > on this list... >
Just to add some info: To the best of my knowledge, scripts in init.d will source the relevant file in conf.d. So, whether or not an initscript requires a conf.d file totally depends on the initscript in question. Rgds, --

