Skip to content

Instantly share code, notes, and snippets.

@hyphop
Created January 21, 2021 07:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hyphop/bd696f0d5e81f7535d00b304cad60c90 to your computer and use it in GitHub Desktop.
Save hyphop/bd696f0d5e81f7535d00b304cad60c90 to your computer and use it in GitHub Desktop.
test_reboot
#!/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