Svante Signell, le Mon 31 Oct 2011 19:42:34 +0100, a écrit :
> What about creating a script dmesg doing similar to the following (save
> for syntax errors) :
> 
> if [ "$1" == "-s" ]; then

Making the dmesg behavior change according to being passed -s or not
would be even more convoluted, I really don't think we want to go that
way. Either we manage to provide a dmesg which behaves similarly to
others, or we don't and tools have to cope with it. apt could use
/var/log/kern.log instead for instance.

>   dd if=/dev/klog of=/var/log/dmesg &
>   sleep 1
>   kill $!
> else
>   exec cat /var/log/dmesg
> fi

Samuel


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]

Reply via email to