#!/bin/sh
source /ciena/scripts/paramApi.sh
# This script is called after the guardian has killed a non-responsive client.

client_name=$1

LEOS_LAST_RESET_FILE=/tmp/fifo/leos/LEOS_LAST_RESET

case "$client_name" in

    "leos"|"saos")
        hex_reason=$(printf "%02x" $ResetReason_GuardianSaosRestart)
        echo -en "\0\0\0\x$hex_reason" > $LEOS_LAST_RESET_FILE
        ;;

    *)
        ;;

esac