DF-2830 / build.sh
#!/bin/sh # DF-2830 PoC build: compile the KLD harness inside the guest. set -e mkdir -p /root/df2830 cat > /root/df2830/Makefile <<'EOF' KMOD= df2830 SRCS= df2830_harness.c KMODDIR=/root/df2830 .include <bsd.kmod.mk> EOF cp /root/df2830_src/df2830_harness.c /root/df2830/ cd /root/df2830 make clean 2>/dev/null || true make depend 2>&1 make 2>&1 ls -l df2830.ko |