Skip to content

This script is used to record the reboot time of device. It is for debug.

License

Notifications You must be signed in to change notification settings

tylpk1216/auto-reboot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

auto-reboot

Sometimes our device entered shutdown mode when user wanted to reboot device.

So I wrote this script to check whether this bug is fixed or not.

If our device enters shutdown mode, I will look at its monitor. It can tell me how many times that our device reboots successfully.

Debug message

    read PreTime Count < $Log
    Count=$((Count+1))
    echo $PreTime $Count > $Log

    echo "$PreTime $NowTime ($Count)"
    echo "Reboot now"
    reboot

About

This script is used to record the reboot time of device. It is for debug.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages