mirror of
https://github.com/Foltik/dotfiles
synced 2024-11-28 05:27:06 -05:00
17 lines
234 B
Bash
Executable File
17 lines
234 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [[ -c /dev/video0 ]]; then
|
|
if [[ "$(fuser /dev/video0)" != "" ]]; then
|
|
echo "rec"
|
|
echo "rec"
|
|
echo ""
|
|
else
|
|
echo "on"
|
|
echo "on"
|
|
echo ""
|
|
else
|
|
echo "off"
|
|
echo "off"
|
|
echo ""
|
|
fi
|
|
fi |