Is it possible to direct a script based on hardware (laptop or desktop)? PGP is only required on our Laptops. In order to help out our Audit team, I'd like a script to first detect if the machine is a laptop; if it's not, it can simply return "PGP WDE Not Required". If the machine is a laptop it can then report pgp status. For some reason telling them "Macbook Pro" means laptop and "MacPro" means desktop is too much.
I tried loading this into a variable:
ModelName=system_profiler | grep "Model Name" | sed -e 's/Model Name://g'
But when I "if" that variable to "MacBook Pro" it didn't seem to want to accept that.
Is there an easier way to do this? Or is it even possible?
Thanks!
Noah Swanson
Imaging Specialist
Enterprise Desktop Services
Phone: 309-765-3153
SwansonNoah at johndeere.com