#!/bin/bash

PATH=$PATH:/sbin:/usr/sbin:/usr/local/sbin

killall wdhole 2>/dev/null

# HP
if dmidecode | grep -q "Vendor: HP"; then
    wdstop.hp
fi

if lsmod | grep -q 'hpwdt\|iTCO_wdt';then
    which wdstop.hp >/dev/null && wdstop.hp
    exit
fi


if [ "$CPU" = "Geode" -o "$CPU" = "Atom" ] ; then
    # MSC
    if which uspepc >/dev/null;then
        if uspepc -INFO -b 2>/dev/null| head -1 | grep -q "HW platform:.*Q7-US15W";then
            wdstop.msc
            exit
        fi
    fi
        
        
    # Congatec    
    if which cgutlcmd >/dev/null;then
        if cgutlcmd cginfo /ot:board /dump /cgos 2>/dev/null >/dev/null ;then
            wdstop.cgt
            exit
        fi
    fi
fi


