Thank you to those who attended the National and Regional User Conferences. For those of you that were looking for the scripts used during the keynote for Deploying OS X Lion you can find them below. There is also a knowledge base article that covers all topics that were in the keynote located at https://jamfnation.com/article.html?id=173
Extension attribute to report on status of the Install OS X Lion.app:
#!/bin/sh
if [ -e /path/to/Install Mac OS X Lion.app ]
then
size=`du -sm /path/to/Install Mac OS X Lion.app | awk '{print $1}'`
else
echo "<result>Not Available</result>"
exit 0
fi
if [ $size -lt 3584 ]
then
echo "<result>Incomplete</result>"
exit 0
fi
if [ $size -eq 3584 ]
then
echo "<result>Available</result>"
exit 0
fi
if [ $size -gt 3584 ]
then
echo "<result>Oversized</result>"
exit 0
fi
Script to change the volume format of the 10.7 Recovery HD
#!/bin/sh
/usr/sbin/diskutil unmount /dev/disk0s3
/usr/sbin/asr adjust --target /dev/disk0s3 -settype Apple_Boot
Command to show Recovery HD:
/usr/sbin/diskutil mount disk0s3
If anyone else has any useful scripts / ideas to help with deploying OS X Lion please share below!