On Mon, Jun 28, 2021 at 10:51:42AM +0000, Steve Blinkhorn wrote:
> I can see in /var/run/dmesg.boot, immediately before the line
> beginning "mainbus 0"  a string identifying the machine's manufacturer
> and model name.
> 
> Is there some way of accessing this string from a shell-level command?

ed -s /var/run/dmesg.boot <<EOT
/^mainbus0/-p
q
EOT

HTH
-- 
        Thierry Laronde <tlaronde +AT+ polynum +dot+ com>
                     http://www.kergis.com/
                    http://kertex.kergis.com/
                       http://www.sbfa.fr/
Key fingerprint = 0FF7 E906 FBAF FE95 FD89  250D 52B1 AE95 6006 F40C

Reply via email to