Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
launchctl unload /System/Library/LaunchDaemons/
uuid=`/usr/sbin/system_profiler SPHardwareDataType | grep "Hardware UUID" | cut -c22-57`
defaults write /var/db/locationd/Library/Preferences/ByHost/$uuid LocationServicesEnabled -int 1
chown -R _locationd:_locationd /var/db/locationd
launchctl load /System/Library/LaunchDaemons/
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment