Apologies if this doesn't belong in this thread, but I couldn't find a more appropriate one. I'm writing a bash script, and I'd like it to reboot my iPhone (sometimes, if certain conditions are met), but I'm not sure how to do that without root privilege. I wasn't able to get "sudo" to work, so I'm not sure what to do at this point.

Any advice would be greatly appreciated! Thanks!