0510fc7258
* Correct the watch-control service to call the right script * make watchdog-control.sh executable (chmod +x)
23 lines
334 B
Bash
Executable File
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
|