Project

General

Profile

新建 #228 » test_watchdog.sh

刘 志飞, 06/04/2024 04:46 AM

 
#!/bin/bash
echo "start watchdog test"
echo "press keyboard ctrl+c to stop feeding watchdog"
echo "press keyboard ctrl+c to stop feeding watchdog"
echo "press keyboard ctrl+c to stop feeding watchdog"

trap 'onCtrlC' INT
function onCtrlC () {
echo ""
echo "CTRL+C signal detected, watchdog feeding is stopped, and system will restart after 10s"
exit 0
}

/rp_test/watchdog/watchdogd.out 1 10
(9-9/12)