autogenerating /etc/issue

Bruce Dubbs bdubbs at
Wed Jul 4 08:12:25 PDT 2001

Sanjuro Europa wrote:
> I have a script called /etc/rc.d/init.d/local it is called as last script
> in all runlevels (S999local) and it contains (among other things) the
> following lines:
> echo "LFS Linux 3.0-pre4" > /etc/issue
> echo "Kernel $(uname -r) on $a $(uname -m)" >> /etc/issue
> echo "" >> /etc/issue
> The idea is to dynamically generate a issue file at start-up so it reflects
> the kernel version of the kernel I am booting.
> Now, how do I insert a clear and reset terminal code (and which code do I
> need) at the beginning of the file?

Mandrake has a binary file and in their local script they hve:
/usr/bin/linux_logo > issue

The then append other text to issue.  I suppose the easiest way would be to
write a short C program to do the same thing.

  -- Bruce
Unsubscribe: send email to lfs-discuss-request at
and put unsubscribe in the subject header of the message

More information about the lfs-dev mailing list