Deploying OS X Lion keynote at the National/Regional User Conferences

kyle_appel
New Contributor II

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!

2 REPLIES 2

rmanly
Contributor III

Thanks for the tips. I took a ton of notes at your presentation on Tuesday as I have not tested all these various deployment options, or Lion deployment much at all TBH.

An FYI for others though on the first script. Check the size of your Install app after download as using the method above mine yields 3627 as the result.

Also escaping all those spaces is icky...do this ;)

if [ -e "/path/to/Install Mac OS X Lion.app" ]

rmanly
Contributor III

Thanks for the tips. I took a ton of notes at your presentation on Tuesday as I have not tested all these various deployment options, or Lion deployment much at all TBH.

An FYI for others though on the first script. Check the size of your Install app after download as using the method above mine yields 3627 as the result.

Also escaping all those spaces is icky...do this ;)

if [ -e "/path/to/Install Mac OS X Lion.app" ]