Created
July 9, 2018 17:17
-
-
Save joshavant/5517121faf263e46dedd9ba2f27b0777 to your computer and use it in GitHub Desktop.
macOS Refresh Cameras Script
This file contains hidden or 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
#!/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." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Installation:
refresh_cameras.sh
)chmod +x refresh_cameras.sh
Usage:
sudo ./refresh_cameras.sh