[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#673207: /etc/default/rcS is perhaps a better place for FANCYTTY variable



On Mon, May 21, 2012 at 01:38:47PM +0200, Didier 'OdyX' Raboud wrote:
> That said; /e/lsb-base-logging.sh will keep being sourced as being the
> documented file to override the functions defined in
> /l/l/init-functions. How do we ensure that any FANCYTTY (possibly
> scripted) definition in there gets reflected in /e/d/rcS ?

I'm not sure what you mean here.  Do you plan to keep the definition
in two places (for backward compatibility?)?  Which would be the
"preferred" location, i.e. which would take priority over the other?

> I would tend to foresee that the code would look like:
> 
> FANCYTTY=
> [ -e /etc/default/rcS ] && . /etc/default/rcS || true
> [ -e /etc/lsb-base-logging.sh ] && . /etc/lsb-base-logging.sh || true

This looks fine, though the ordering would depend on which you
want to take priority which would need to come last.

> ... with some maintainer script code in lsb-base and/or sysvinit to copy
> an existing value of FANCYTTY from /e/lsb-base-logging.sh to /e/d/rcS .

Is this just on upgrade e.g. in the maintainer scripts?  To be run just
once to migrate the setting?  Or for all changes?


Thanks,
Roger
-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux    http://people.debian.org/~rleigh/
 `. `'   schroot and sbuild  http://alioth.debian.org/projects/buildd-tools
   `-    GPG Public Key      F33D 281D 470A B443 6756 147C 07B3 C8BC 4083 E800



Reply to: