Hardware/Apple: Difference between revisions

imported>Samueldr
Adds a command to identify the apple hardware. (couldn't actually test though)
 
imported>Samueldr
m Tentatively switches to use freely readable variables in /sys/...
Line 2: Line 2:


<syntaxhighlight lang="commands">
<syntaxhighlight lang="commands">
  $ sudo nix-shell -p dmidecode --run dmidecode  | grep -i macbook
  $ cat /sys/devices/virtual/dmi/id/product_{family,name}
Product Name: MacBookAir3,1
MacBook
Family: MacBook
MacBook2,1
</syntaxhighlight>
</syntaxhighlight>


The ''Version'' field is your key to success, this will allow you to identify with great accuracy the hardware. Fixes for other versions may apply too, but the greater the gap between revisions, the less likely it is to work.
The last line is the '''version'' field; the key to your success. This will allow you to identify with great accuracy the hardware. Fixes for other versions may apply too, but the greater the gap between revisions, the less likely it is to work.