/dev/null and init

Matthias Benkmann haferfrost at web.de
Mon Jul 16 12:34:41 PDT 2001


On 16 Jul 2001, at 11:16, Ainsley Pereira wrote:

> 
> The output you refer to is probably kernel output from the module itself,
> not insmod's output. Kernel output doesn't get redirected. If you want to
> get rid of it, look for the 'printk' statements in the kernel/module source
> and comment them out (with /* comment */ style commenting).

Hacking printks isn't necessary. The dmesg command can be used to 
temporarily disable certain kernel messages.
Try to insert 
dmesg -n0
in your script before calling insmod. And after the call to insmod
dmesg -n7

If this successfully suppresses your messages you should increase the 
first -n number to the highest possible that will suppress your messages 
(probably -n6).

MSB

----
Ambition is a poor excuse for not having enough sense to be lazy.

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



More information about the lfs-dev mailing list