#!/system/bin/sh
# 变量
tyzj=/cache/Rulong/天御组件.log
csty=/cache/Rulong/查杀天御组件.log
echo "挂载分区..."
mount -o remount,rw /
echo "正在查找腾讯天御组件..."
# 查找并清除腾讯天御组件
file=$(cd `dirname $0`; pwd)/inipath
stringsA=`find /data -type f -name "*turing.dat"`
stringsB=`find /data -type f -name "*.turing.dat"`
if [ -n "$stringsA" ] || [ -n "$stringsB" ];then
  find /data -type f -name "*turing.dat" > $tyzj
  find /data -type f -name "*.turing.dat" >> $tyzj
  echo "已找到data分区腾讯天御组件并输出log"
# 开始查杀
for line in `cat $tyzj`
do
echo "读取到: $line" > $csty
echo "正在设置权限: $line" >> $csty
echo "查杀成功..." > $line | chmod 000 $line
echo "查杀天御组件完成..." >> $csty
done
else
  echo "当前data分区不存在腾讯天御组件..." > $csty
fi
rm -rf $tyzj
exit 0