sudo unlockRegionCodeSetting.sh <mountPoint> <computerName> <username> <locked>
If the $locked parameter is specified as true or false (in parameter 4), this is the setting
that will be set.
If no parameter is specified for parameter 4, the hardcoded value in the script will be used.
This script unlocks or locks the system preference authorization to allow or disallow users to set the DVD region code, as reflected in the DVD player application. It has been designed to function on Mac OS X 10.4 and higher with DVD Player.app 1.0 and higher. The locked/unlock value will be set according to the value specified in the paramter $locked. It can be used with a hardcoded value in the script, or read in as a parameter. Since the Casper Suite defines the first three parameters as (1) Mount Point, (2) Computer Name and (3) username, we are using the forth parameter ($4) as the passable parameter. If no parameter is passed, then the hardcoded value will be used.