###############################################################################
#    AGC mode change script
#    OFF          --> ON
#    ON or MANUAL --> OFF
###############################################################################
AGC=`grep "AGC Mode:" ../Filters/mode.txt`
if [[ "$AGC" =~ OFF ]]
then
    sed -e 's/^AGC Mode:        OFF/AGC Mode:        ON/' ../Filters/mode.txt >temp.txt
else
    sed -e 's/^AGC Mode:        ON/AGC Mode:        OFF/' ../Filters/mode.txt >temp.txt
fi
chown toyozumi:toyozumi temp.txt
chmod 777 temp.txt
mv -f temp.txt ../Filters/mode.txt

