Skip to content

Instantly share code, notes, and snippets.

@joshavant
Created July 9, 2018 17:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save joshavant/5517121faf263e46dedd9ba2f27b0777 to your computer and use it in GitHub Desktop.
Save joshavant/5517121faf263e46dedd9ba2f27b0777 to your computer and use it in GitHub Desktop.
macOS Refresh Cameras Script
#!/bin/bash
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi
echo "Killing VDCAssistant..."
sudo killall VDCAssistant
echo "Killing AppleCameraAssistant..."
sudo killall AppleCameraAssistant
echo "Done. Re-check your cameras."
@joshavant
Copy link
Author

joshavant commented Jul 9, 2018

Installation:

  1. Save raw content on disk (as, say, refresh_cameras.sh)
  2. In Terminal, from the directory where you saved it, do chmod +x refresh_cameras.sh

Usage:

  1. In Terminal, from the directory where you saved it, do sudo ./refresh_cameras.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment