I would like a switch added to the img command to test if an image path exists, but not restore the image. If yes return 0 and if no return 1 or something similar we can key off of.
We have a set of shell scripts we use for imaging that applies a base sysprep image that looks for device drivers in a folder /drvr on setup or OOBE. We then apply a 2nd image to the machine that puts drivers for the model machine as detected from a dmidecode command in the /drvr folder.
By adding a switch as suggested, the script would be fully automated unless the the path to the drivers for that model is not detected.

Comments