Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/lbfactory/LBFactory.php on line 711
Deprecated: Return type of MediaWiki\Session\PHPSessionHandler::open($save_path, $session_name) should either be compatible with SessionHandlerInterface::open(string $path, string $name): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/wiki/includes/session/PHPSessionHandler.php on line 181
Deprecated: Return type of MediaWiki\Session\PHPSessionHandler::close() should either be compatible with SessionHandlerInterface::close(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/wiki/includes/session/PHPSessionHandler.php on line 196
Deprecated: Return type of MediaWiki\Session\PHPSessionHandler::read($id) should either be compatible with SessionHandlerInterface::read(string $id): string|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/wiki/includes/session/PHPSessionHandler.php on line 210
Deprecated: Return type of MediaWiki\Session\PHPSessionHandler::write($id, $dataStr) should either be compatible with SessionHandlerInterface::write(string $id, string $data): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/wiki/includes/session/PHPSessionHandler.php on line 238
Deprecated: Return type of MediaWiki\Session\PHPSessionHandler::destroy($id) should either be compatible with SessionHandlerInterface::destroy(string $id): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/wiki/includes/session/PHPSessionHandler.php on line 344
Deprecated: Return type of MediaWiki\Session\PHPSessionHandler::gc($maxlifetime) should either be compatible with SessionHandlerInterface::gc(int $max_lifetime): int|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/wiki/includes/session/PHPSessionHandler.php on line 365
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 394
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: Return type of MediaWiki\Session\Session::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/wiki/includes/session/Session.php on line 587
Deprecated: Return type of MediaWiki\Session\Session::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/wiki/includes/session/Session.php on line 593
Deprecated: Return type of MediaWiki\Session\Session::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/wiki/includes/session/Session.php on line 605
Deprecated: Return type of MediaWiki\Session\Session::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/wiki/includes/session/Session.php on line 599
Deprecated: Return type of MediaWiki\Session\Session::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/wiki/includes/session/Session.php on line 617
Deprecated: Return type of MediaWiki\Session\Session::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/wiki/includes/session/Session.php on line 611
Deprecated: Return type of MediaWiki\Session\Session::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/wiki/includes/session/Session.php on line 627
Deprecated: Return type of & MediaWiki\Session\Session::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/wiki/includes/session/Session.php on line 640
Deprecated: Return type of MediaWiki\Session\Session::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/wiki/includes/session/Session.php on line 650
Deprecated: Return type of MediaWiki\Session\Session::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/wiki/includes/session/Session.php on line 655
Deprecated: MapCacheLRU implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in /var/www/html/wiki/includes/libs/MapCacheLRU.php on line 37
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 394
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: Message implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in /var/www/html/wiki/includes/language/Message.php on line 162
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: RawMessage implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in /var/www/html/wiki/includes/RawMessage.php on line 0
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/wiki/includes/session/Session.php:48) in /var/www/html/wiki/includes/changes/ChannelFeed.php on line 89
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/wiki/includes/session/Session.php:48) in /var/www/html/wiki/includes/changes/ChannelFeed.php on line 95
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/wiki/includes/session/Session.php:48) in /var/www/html/wiki/includes/WebResponse.php on line 72
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/wiki/includes/session/Session.php:48) in /var/www/html/wiki/includes/WebResponse.php on line 72
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/wiki/includes/session/Session.php:48) in /var/www/html/wiki/includes/WebResponse.php on line 72
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/wiki/includes/session/Session.php:48) in /var/www/html/wiki/includes/WebResponse.php on line 72
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561 https://wiki.afp548.com/index.php?action=history&feed=atom&title=Firstboot_Postflight_CommandsFirstboot Postflight Commands - Revision history2026-10-23T22:00:31ZRevision history for this page on the wikiMediaWiki 1.34.0 Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/wiki/includes/libs/rdbms/database/Database.php on line 561 https://wiki.afp548.com/index.php?title=Firstboot_Postflight_Commands&diff=236&oldid=prev208.95.51.187 at 16:15, 1 September 20102010-09-01T16:15:01Z<p></p>
<p><b>New page</b></p><div><syntaxhighlight lang="bash"><br />
#!/bin/sh<br />
<br />
# Standard settings for images.<br />
# Script is meant to be run as a postflight script in a .pkg file. Also installs startup settings script as a Launchd item which is inside the package /Contents/Resources directory.<br />
<br />
##### Begin Declare Variables Used by Script #####<br />
<br />
# Declare 'defaults'and 'PlistBuddy'.<br />
<br />
defaults="/usr/bin/defaults"<br />
PlistBuddy="/usr/libexec/PlistBuddy"<br />
<br />
# Declare directory variables.<br />
<br />
PKG_DIR="$1/Contents/Resources"<br />
SCRIPTS_DIR="$3/Library/Scripts/CompanyName"<br />
LAUNCHD_DIR="$3/Library/LaunchDaemons"<br />
PRIVETC_DIR="$3/private/etc"<br />
PREFS_DIR="$3/Library/Preferences"<br />
USERPREFS_DIR="$3/System/Library/User Template/English.lproj/Library/Preferences"<br />
NONLOC_USERPREFS_DIR="$3/System/Library/User Template/Non_localized/Library/Preferences"<br />
ROOT="$3/"<br />
UPDATE_DYLD="$3/usr/bin/update_dyld_shared_cache" # Set variable to location of update_dyld_shared_cache command on target volume.<br />
<br />
##### End Declare Variables Used by Script #####<br />
<br />
##### Begin Preference Setting #####<br />
<br />
# These settings can be set on the target volume before startup.<br />
<br />
# Run update_dyld_shared_cache<br />
$UPDATE_DYLD -universal_boot -root $ROOT<br />
<br />
# Display login window as Name and Password.<br />
$defaults write "${PREFS_DIR}/com.apple.loginwindow" SHOWFULLNAME -bool YES<br />
<br />
#Starts the Flurry screensaver over the login window when idle for 60 seconds<br />
$defaults write "${PREFS_DIR}/com.apple.screensaver" loginWindowIdleTime -int 60<br />
$defaults write "${PREFS_DIR}/com.apple.screensaver" loginWindowModulePath "/System/Library/Screen Savers/Flurry.saver"<br />
<br />
# Sets autologout to 60 minutes and enables it<br />
$defaults write "${PREFS_DIR}/.GlobalPreferences" com.apple.autologout.AutoLogOutDelay -int 3600<br />
<br />
# Use encrypted virtual memory.<br />
$defaults write "${PREFS_DIR}/com.apple.virtualMemory" UseEncryptedSwap -bool Yes<br />
<br />
# Set Safari Preferences.<br />
$defaults write "${USERPREFS_DIR}/com.apple.Safari" HomePage http://www.google.com/<br />
$defaults write "${USERPREFS_DIR}/com.apple.Safari" ShowStatusBar -bool YES<br />
<br />
# Set Finder Prefereces.<br />
$defaults write "${USERPREFS_DIR}/com.apple.finder" ShowMountedServersOnDesktop -bool YES<br />
<br />
# Enables Double Click Title bar to Minimize Window<br />
<br />
$defaults write "${NONLOC_USERPREFS_DIR}/.GlobalPreferences" AppleMiniaturizeOnDoubleClick -bool TRUE<br />
<br />
# No .ds-store files on Network Shares<br />
$defaults write "${PREFS_DIR}/com.apple.desktopservices" DSDontWriteNetworkStores true<br />
<br />
# Globally Set Expanded Print Dialouge Box.<br />
$defaults write "${PREFS_DIR}/.GlobalPreferences" PMPrintingExpandedStateForPrint -bool TRUE<br />
<br />
# Use short-name for logging into Network Shares<br />
$defaults write "${PREFS_DIR}/com.apple.NetworkAuthorization" UseDefaultName -bool NO<br />
$defaults write "${PREFS_DIR}/com.apple.NetworkAuthorization" UseShortName -bool YES<br />
<br />
# Set Apple Mouse button 1 to Primary click and button 2 to Secondary click.<br />
$defaults write "${USERPREFS_DIR}/com.apple.driver.AppleHIDMouse" Button1 -integer 1<br />
$defaults write "${USERPREFS_DIR}/com.apple.driver.AppleHIDMouse" Button2 -integer 2<br />
<br />
# Disable Time Machine Offers.<br />
$defaults write "${PREFS_DIR}/com.apple.TimeMachine" DoNotOfferNewDisksForBackup -bool YES<br />
<br />
# Disable Time Machine AutoBackup<br />
$defaults write "${PREFS_DIR}/com.apple.TimeMachine" AutoBackup 0<br />
<br />
# Enables SSH<br />
$PlistBuddy -c "Delete Disabled" $3/System/Library/LaunchDaemons/ssh.plist<br />
<br />
# Allows any user to set dvd region<br />
$PlistBuddy -c "Set :rights:system.device.dvd.setregion.initial:class allow" "$3"/etc/authorization<br />
<br />
# Firewall Settings | 0 = Off | 1 = On For Specific Services | 2 = On For Essential Services<br />
$defaults write "${PREFS_DIR}/com.apple.alf" globalstate -int 0<br />
<br />
##### End Preferences Setting #####<br />
<br />
exit 0<br />
</syntaxhighlight><br />
<br />
[[Category:Settings]][[Category:InstaDMG]]</div>208.95.51.187