Quote:
Originally Posted by elliott678
|
Well during the call I tried to check the parameters and they remain the same.
I dont know how to reset the brightness during the call.
here is my script:
Code:
#!/bin/sh
if [ "$1" == "--help" ] ; then
echo "Please do a quick less command"
echo "of the script"
exit 0
exit -1
fi
if [ "$1" == "-l" ] ; then
cat /sys/module/gspca/parameters/gamma
cat /sys/module/gspca/parameters/GRed
cat /sys/module/gspca/parameters/GGreen
cat /sys/module/gspca/parameters/GBlue
fi
if [ "$1" == "-c" ] ; then
echo $2 > /sys/module/gspca/parameters/gamma
echo $3 > /sys/module/gspca/parameters/GRed
echo $4 > /sys/module/gspca/parameters/GGreen
echo $5 > /sys/module/gspca/parameters/GBlue
fi
Even when fully dark image, it does:
Code:
sh /root/webcam.sh -l
3
256
256
256