Re: bootup messages
Quoting Jonas Steverud (d4jonas@dtek.chalmers.se):
> "Krosigk, Lorenz Von" <krosigk@gedas.es> writes:
>
> > is there a way to hide the bootup messages at the screen, to direct them
> > (the important ones like warnings and errors) to a file and to show
> > something else on the screen meanwhile the machine starts up?
>
> You have to modify each script in /etc/init.d/.
>
> The scripts found in /etc/rcS is ran at boot and then /etc/rc2.d (or
> whatever the names, my system is broken currently [see other thread]
> so I can't check). It is not one script that runs them all so you
> can't add '> /foo/bar' to it. Sadly enough. (I think it is both
> security and historical reasons for this.)
But surely /etc/init.s/rcS _is_ one script, so you should be able to
redirect stdout in there, and leave the rest of /etc/init.d/* untouched.
(
for i in /etc/rcS.d/S??*
do
...
done
) > /foo/bar
Cheers,
--
Email: d.wright@open.ac.uk Tel: +44 1908 653 739 Fax: +44 1908 655 151
Snail: David Wright, Earth Science Dept., Milton Keynes, England, MK7 6AA
Disclaimer: These addresses are only for reaching me, and do not signify
official stationery. Views expressed here are either my own or plagiarised.
Reply to: