[PATCH] vars.sh: remove unnecessary fork to speedup boot/upgrades

Trek trek00 at inbox.ru
Mon Sep 14 22:57:15 BST 2020


On Mon, 14 Sep 2020 22:03:01 +0200 (CEST)
Thorsten Glaser <t.glaser at tarent.de> wrote:

> On Mon, 14 Sep 2020, Trek wrote:
> > I think it would be better to use the $(cat) construct on those
> > bugged /proc files (commenting the code) and a plain read on the
> > others
> 
> Perhaps with a comment linking to this discussion?

perfect, I think this url contains most of the info
http://www.chiark.greenend.org.uk/pipermail/debian-init-diversity/2020-August/003553.html


> > to print the ansi escape codes for the fancy output on
> > lsb/init-functions, I would like to use the printf utility as it
> 
> But since these codes are going to be hardcoded, just put a literal
> escape sign into the source code. Perhaps once only:
> 
> esc='^['	# Ctrl-V Esc in vi, `[ or `+Esc in jupp
> colour_reset="$esc[0m"
> colour_bold="$esc[1m"
> colour_inverse="$esc[7m"
> 
> This is the optimum.

I really like this solution, it's the most compatible and performing one

many thanks, I'll post the salsa url of the revised patchset tomorrow,
then I'll start working on lsb patches

ciao!



More information about the Debian-init-diversity mailing list