[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: dmesg command



Svante Signell, le Mon 31 Oct 2011 12:45:11 +0100, a écrit :
> On Mon, 2011-10-31 at 12:20 +0100, Samuel Thibault wrote:
> > Thomas Schwinge, le Mon 31 Oct 2011 10:20:39 +0100, a écrit :
> > >             # Save kernel messages in /var/log/dmesg
> > >             if which dmesg >/dev/null 2>&1
> > >             then
> > >                     [ -f /var/log/dmesg ] && savelog -q -p -c 5 /var/log/dmesg
> > >                     dmesg -s 524288 > /var/log/dmesg
> > >                     chgrp adm /var/log/dmesg || :
> > 
> > d'oh.
> > 
> > apt will have to find another way than dmesg, then.
> 
> Is proposing a change to the the bootlogs script forbidden/impractical?

It will be harder to justify than chaging the just-added code in apt.
Inverting the tests will make kfreebsd use /dev/klog instead of dmesg,
it's not an innocent change.

Samuel


Reply to: