obmc-initfs shutdown: ping watchdog watchdog during flash update
Add code to start a watchdog daemon before calling the update script
as erasing the flash can take over 10 minutes. This allows us to
reduce the shutdown timeout to a much more useful value.
The code kills the watchdog after the update script returns and
also resets the timeout to a different value by invoking and killing
the watchdog command a second time.
Tested with the following code added before the reboot -f code and
changing the timoeuts:
while :
do
let count=$count+1
echo -ne "\rloop $count"
usleep 100
done
Change-Id: Ibe2337339af67421733230b6a5b6df962618a00a
Signed-off-by: Milton Miller <miltonm@us.ibm.com>
1 file changed