On Wed, Jun 29, 2011 at 03:38, Ulrich Mueller wrote: >>>>>> On Wed, 29 Jun 2011, Mike Frysinger wrote: >>>> >> /etc/init.d/functions.sh has existed for the last decade, and >>>> >> was long ago decided as the canonical public entry point for >>>> >> scripts external to baselayout (as opposed to a path in >>>> >> /sbin/). >> >> the file should provide the classic e* output funcs that we've all >> grown to love, and are now enshrined in PMS. it has had other >> functions come and go over the years, but i think things have >> settled on just the output helpers. was there anything other than >> the output helpers you were interested in ? > > eselect also uses other functions from it, like rc_runlevel().
yes, but in this case, eselect is closely bound to what version (baselayout-1 vs openrc vs ...) is installed so that it can manage the init.d scripts and runlevels. as soon as the init code changes drastically, then the eselect module does as well. i think this is a different beast than what most every other external script is using it for. -mike