An open API service indexing awesome lists of open source software.

https://github.com/tylpk1216/auto-reboot

This script is used to record the reboot time of device. It is for debug.
https://github.com/tylpk1216/auto-reboot

debug linux-shell

Last synced: about 1 month ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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
```