#!/usr/bin/perl

my $target = $ARGV[2];

use Foundation;

$SystemDict = NSMutableDictionary->dictionaryWithContentsOfFile_("/System/Library/CoreServices/SystemVersion.plist");

$vers = $SystemDict->objectForKey_("ProductVersion");
$cVers = $vers->cString();

if( $cVers >= "10.5" )
{
	`chmod 0755 "$target/Library/Filesystems"`;
	`chown root:wheel "$target/Library/Filesystems"`;
}
else
{
	
}

exit(0);

