Created
January 21, 2021 07:54
-
-
Save hyphop/bd696f0d5e81f7535d00b304cad60c90 to your computer and use it in GitHub Desktop.
test_reboot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
## hyphop ## | |
#= reboot test script | |
( | |
exit 0 | |
N=xxx | |
cpu_freq_fix 1200000 | |
SLEEP=$(cat /sys/class/firmware/timeout) | |
[ "$SLEEP" ] || SLEEP=10 | |
echo "hello world from $SERVER_IP uptime: $(cat /proc/uptime)" | |
echo "SYSINFO: $(uname -a )" | |
echo "ARGS: $(cat /proc/cmdline)" | |
cpu_freq | |
echo "REBOOT TEST $N: system will be rebooted after $SLEEP sec!" | |
echo " otherwise system was freezed!!!" | |
sleep $SLEEP | |
reboot -f | |
) > /dev/ttyAML0 2>&1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment