Possible to remove these files during imaging?

donmontalvo
Esteemed Contributor III

I just finished making a 10.7.5 image and I realize I forgot to remove the peskhy files I mentioned here:

https://jamfnation.jamfsoftware.com/discussion.html?id=5402

I guess I was expecting to be able to handle this during Casper Imaging time.

I created a script that runs AFTER, using $1 but doesn't seem to remove the files on the drive we are imaging:

#!/bin/sh
#
# Remove these pesky network settings files.

/bin/rm $1/Library/Preferences/SystemConfiguration/NetworkInterfaces.plist
/bin/rm $1/Library/Preferences/SystemConfiguration/com.apple.network.identification.plist
/bin/rm $1/Library/Preferences/SystemConfiguration/preferences.plist

exit 0

Am I missing something? :D

Don

--
https://donmontalvo.com
0 REPLIES 0