Posts

Showing posts from December, 2022

First Gen Ipad - IOS 5 enable/disable locationd service.

Image
I use Kodi on a first-generation iPad to stream media from a variety of services. This gadget has very little memory, and Kodi crashes periodically. I figured memory restriction was the issue, therefore I chose to test turning off services.   Disabling the locationd seems fine so far, saved me about a meg.   Code is shown below, working "launchctl" rules found here https://apple.stackexchange.com/a/308421 #!/bin/sh if [ "$(whoami)" != "root" ] then echo "You have to run this script as Superuser!" exit 1 fi msg(){ echo "Supported arguments: enable, disable" } disable() { launchctl unload -w /System/Library/LaunchDaemons/com.apple.locationd.plist } enable() { launchctl load -w /System/Library/LaunchDaemons/com.apple.locationd.plist } case "$1" in "enable") enable ;; "disable") disable ;; *) msg ;; esac exit 0 UPDATE Freeing up resources did not fix Ko