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

