Gerard Beekmans wrote:

> Nothing is actually locked, the kernel just printed a message to your
> screen. You can change this using the "dmesg" command. The '-n' option
> changes the level at which kernel logs are sent to the console. I'm not
> sure which level you would need to set to prevent these USB messages
> from appearing. You would have to experiment with it.
> 
> If you set the level to '1' (dmesg -n 1), the console will receive no
> messages except kernel panic messages. All messages, including the ones
> that aren't printed, still go to the system log daemon as usual.
> 

A perfect place to show off a recent addition to the LFS-Bootscripts.
They now contain the sysctl script which allows you to set /proc/sys
params at boot time (where this value is stored).  In this case, we want
to change the values in the file /proc/sys/kernel/printk.  Try this:

echo "kernel.printk=3" >> /etc/sysctl.conf

Obviously change the 3 to your log level preference.  Probably more
explanation than is needed, but that particular file is a bad example
because there is more than one value. If you should need to change more
than the first, they are space delimited; the values have to be quoted.
IOW:  (echo "kernel.printk='3 4 1 7'" >> /etc/sysctl.conf)

-- DJ Lucas
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to