#!/bin/sh
# DF-5031 — it.c reachability probe (read-only, run on the QEMU guest)
# Question: is the it (IT87xx) hw-monitor driver compiled into / shipped with
# the standard DragonFly build, and what does it take to instantiate it?
set -e
echo "== uname: $(uname -a)"
echo "== sys/conf/files entry: $(grep powermng/it /usr/src/sys/conf/files)"
echo "== 'device it' in X86_64_GENERIC: $(grep -Ec '^device[[:space:]]+it[[:space:]]*$' /usr/src/sys/config/X86_64_GENERIC || true)"
echo "== it.ko shipped: $(ls /boot/kernel/it.ko 2>/dev/null || echo NONE)"
echo "== it module loaded: $(kldstat | grep -cw it || true)"
echo "== hw.sensors tree: $(sysctl -a hw.sensors 2>/dev/null | head -2)"
