sonic-buildimage/files/image_config/watchdog-control/watchdog-control.sh
Sujin Kang 0510fc7258 Correct the watch-control service to call the right script (#3906)
* Correct the watch-control service to call the right script

* make watchdog-control.sh executable (chmod +x)
2019-12-14 09:42:36 -08:00

23 lines
334 B
Bash
Executable File

#! /bin/bash
VERBOSE=no
function debug()
{
/usr/bin/logger "$0 : $1"
if [[ x"${VERBOSE}" == x"yes" ]]; then
echo "$(date) $0: $1"
fi
}
function disable_watchdog()
{
if [[ -x /usr/bin/watchdog ]]; then
debug "Disabling Watchdog during bootup"
/usr/bin/watchdog -d
fi
}
disable_watchdog