5
FWA-2112 User Manual
C
ha
pte
r 1
Lin
ux
P
latf
orm
S
oft
w
are
G
uid
e I
ntr
od
uc
tio
n
4.
Watchdog has to be re-count once started during timeout, or system will be
force reset while watchdog biting. The script on below is an example for show
-
ing how to feed watchdog every 3 seconds.
The script will infinitely set the watchdog timeout to 5 seconds every 3 seconds, so
that the hardware reset will never occur unless the script is terminated.
5.
Enter following command and the system will reboot after 5 seconds. (Please do
not do it in a service online system.)
'm' : minute;
Example:
Help:
wdt_nct5523 -h
DEFAULT Setting(8 seconds timeout):
wdt_nct5523
Setting 10 seconds timeout:
wdt_nct5523 10 s
Setting 5 minutes timeout:
wdt_nct5523 5 m
#!/bin/bash
echo "start to run watchdog script!"
while [ 1 ]
do
./wdt_nct5523 5 s
sleep 3
done
# sudo ./ wdt_nct5523 5 s