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.
- Host: GitHub
- URL: https://github.com/tylpk1216/auto-reboot
- Owner: tylpk1216
- License: mit
- Created: 2018-06-06T08:37:16.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-09-20T06:16:03.000Z (over 5 years ago)
- Last Synced: 2025-01-26T06:28:19.056Z (3 months ago)
- Topics: debug, linux-shell
- Language: Shell
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 > $Logecho "$PreTime $NowTime ($Count)"
echo "Reboot now"
reboot
```