Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ======== /usr/local/bin/camera.sh ==============
- #!/bin/sh
- if [ -f /tmp/camera ]; then
- sudo chmod a+r /System/Library/Frameworks/CoreMediaIO.framework/Versions/A/Resources/VDC.plugin/Contents/MacOS/VDC
- sudo chmod a+r /System/Library/PrivateFrameworks/CoreMediaIOServicesPrivate.framework/Versions/A/Resources/AVC.plugin/Contents/MacOS/AVC
- sudo chmod a+r /System/Library/QuickTime/QuickTimeUSBVDCDigitizer.component/Contents/MacOS/QuickTimeUSBVDCDigitizer
- sudo chmod a+r /Library/CoreMediaIO/Plug-Ins/DAL/AppleCamera.plugin/Contents/MacOS/AppleCamera
- sudo chmod a+r /Library/CoreMediaIO/Plug-Ins/FCP-DAL/AppleCamera.plugin/Contents/MacOS/AppleCamera
- rm -f /tmp/camera
- else
- sudo chmod a-r /System/Library/Frameworks/CoreMediaIO.framework/Versions/A/Resources/VDC.plugin/Contents/MacOS/VDC
- sudo chmod a-r /System/Library/PrivateFrameworks/CoreMediaIOServicesPrivate.framework/Versions/A/Resources/AVC.plugin/Contents/MacOS/AVC
- sudo chmod a-r /System/Library/QuickTime/QuickTimeUSBVDCDigitizer.component/Contents/MacOS/QuickTimeUSBVDCDigitizer
- sudo chmod a-r /Library/CoreMediaIO/Plug-Ins/DAL/AppleCamera.plugin/Contents/MacOS/AppleCamera
- sudo chmod a-r /Library/CoreMediaIO/Plug-Ins/FCP-DAL/AppleCamera.plugin/Contents/MacOS/AppleCamera
- echo "off" > /tmp/camera
- ======== /usr/local/bin/camera.sh ==============
- sudo groupadd cameramaster
- usermod -a -G cameramaster USERYA
- usermod -a -G cameramaster USERWIFE
- chown USERYA:cameramaster /usr/local/bin/camera.sh
- chmod g+s /usr/local/bin/camera.sh
- ======
- Создаем скрипт Automator, с одним действием "запустить shell-скрипт", сохраняем как службу, теперь вешаем на него хоткей.
- ====
- Ебать, блядь, мак-ос юзер-френдлее некуда.
Advertisement
Add Comment
Please, Sign In to add comment