Created
July 14, 2016 00:39
-
-
Save stevewood-tx/4733fdf614b129321b1e5381f519a58b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Enable Location Services to set time based on location | |
/bin/launchctl unload /System/Library/LaunchDaemons/com.apple.locationd.plist | |
uuid=`ioreg -rd1 -c IOPlatformExpertDevice | awk -F'"' '/IOPlatformUUID/{print $4}'` | |
/usr/bin/defaults write /var/db/locationd/Library/Preferences/ByHost/com.apple.locationd.$uuid \ | |
LocationServicesEnabled -int 1 | |
/usr/sbin/chown -R _locationd:_locationd /var/db/locationd | |
/bin/launchctl load /System/Library/LaunchDaemons/com.apple.locationd.plist | |
# set time zone automatically using current location | |
/usr/bin/defaults write /Library/Preferences/com.apple.timezone.auto Active -bool true | |
#### |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment