change recover path
This commit is contained in:
parent
a9475f6320
commit
b095aa5b8b
@ -52,19 +52,25 @@ while true; do
|
||||
if [ $COUNT -ge $MAX_CRASH ]; then
|
||||
echo "$(date): Crash count exceeded $MAX_CRASH, restoring from factory..." >> /data/crash.log
|
||||
|
||||
# 从factory恢复文件
|
||||
if [ -f /system/factory/e_player ]; then
|
||||
cp /system/factory/e_player /data/e_player
|
||||
chmod +x /data/e_player
|
||||
# 从factory恢复bin文件
|
||||
if [ -f /system/factory/bin/e_player ]; then
|
||||
cp /system/factory/bin/e_player /data/bin/e_player
|
||||
chmod +x /data/bin/e_player
|
||||
echo "$(date): Restored e_player from factory" >> /data/crash.log
|
||||
fi
|
||||
|
||||
if [ -f /system/factory/lbh_client ]; then
|
||||
cp /system/factory/lbh_client /data/lbh_client
|
||||
chmod +x /data/lbh_client
|
||||
if [ -f /system/factory/bin/lbh_client ]; then
|
||||
cp /system/factory/bin/lbh_client /data/bin/lbh_client
|
||||
chmod +x /data/bin/lbh_client
|
||||
echo "$(date): Restored lbh_client from factory" >> /data/crash.log
|
||||
fi
|
||||
|
||||
# 恢复配置文件
|
||||
if [ -f /system/factory/system_properties.cfg ]; then
|
||||
cp /system/factory/system_properties.cfg /data/system_properties.cfg
|
||||
echo "$(date): Restored system_properties.cfg from factory" >> /data/crash.log
|
||||
fi
|
||||
|
||||
# 重置崩溃计数,重新开始
|
||||
echo 0 > "$CRASH_COUNT_FILE"
|
||||
echo "$(date): Reset crash count, retrying..." >> /data/crash.log
|
||||
|
||||
Loading…
Reference in New Issue
Block a user