Skip to content

Commit

Permalink
开机时将上次运行时的日志文件重命名为log.txt.old
Browse files Browse the repository at this point in the history
  • Loading branch information
chase535 authored Dec 10, 2023
1 parent 60bb9ec commit a8df5b3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions module/common/service.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/system/bin/sh
MODDIR=${0%/*}
capacity_file=capacity_file_not_defined
[[ -f /data/adb/accurate_battery/log.txt ]] && mv -f /data/adb/accurate_battery/log.txt /data/adb/accurate_battery/log.txt.old
echo "等待手机启动完毕,以确保时间准确。若只看到这一行内容,请立即联系模块作者!" > /data/adb/accurate_battery/log.txt
until [[ "$(getprop service.bootanim.exit)" == "1" ]]; do
sleep 1
Expand Down

0 comments on commit a8df5b3

Please sign in to comment.