Which hardware?
Posted: 2019-02-10 12:18
Hi folks.
I'm playing around with a raspberry pi and a Tinker board. While essentially the same thing the OSs (Raspbian and Debian) have many differences, as do the libraries for GPIO etc.
In Bash, how can I check the hardware? ie.. If 'command'="Raspberry' DoRaspberry Or a case for a Raspberry pi, Banana pi, Cheesecake, and other boards?
I realise that as the OSs are different and may have to rely on commands failing, or not existing on certain systems. I suppose the easiest way would be for me to drop a file in /dev that each bash could check. Maybe I've just answered my own question!
Even if I have, I'd be interested to know how people would do this if I hadn't just had the genius idea above!!
Many thanks.
I'm playing around with a raspberry pi and a Tinker board. While essentially the same thing the OSs (Raspbian and Debian) have many differences, as do the libraries for GPIO etc.
In Bash, how can I check the hardware? ie.. If 'command'="Raspberry' DoRaspberry Or a case for a Raspberry pi, Banana pi, Cheesecake, and other boards?
I realise that as the OSs are different and may have to rely on commands failing, or not existing on certain systems. I suppose the easiest way would be for me to drop a file in /dev that each bash could check. Maybe I've just answered my own question!
Even if I have, I'd be interested to know how people would do this if I hadn't just had the genius idea above!!
Many thanks.