The Device struct contains a static devices dictionary loaded from a plist file. It defines a deviceName method that looks up and returns the device name string for a given device string, or the device string itself if not found. The struct also has a static deviceName property that uses sysctl to get the machine name and looks it up in devices to return a human-readable device name.
The Device struct contains a static devices dictionary loaded from a plist file. It defines a deviceName method that looks up and returns the device name string for a given device string, or the device string itself if not found. The struct also has a static deviceName property that uses sysctl to get the machine name and looks it up in devices to return a human-readable device name.
The Device struct contains a static devices dictionary loaded from a plist file. It defines a deviceName method that looks up and returns the device name string for a given device string, or the device string itself if not found. The struct also has a static deviceName property that uses sysctl to get the machine name and looks it up in devices to return a human-readable device name.