AFP548

Best way to determine Portable or Desktop?

I have some scripts that I need to run on first boot based on whether it is running on a Desktop system or a Portable system. Does anyone have any suggestions the best way to determine this? I can use system_profiler to grep for the Model Identifier and figure it out from there based on what I find. Are there easier ways to do this, or a "right way" to do this?
Exit mobile version