DragonFlyBSD Kernel Audit
DF-2815 / build.sh
← back to finding ↓ download raw
1
2
3
4
5
6
7
8
9
#!/bin/sh
# DF-2815 build: compile the churner and the reboot(2) helper in the guest.
# Build on a normally-synced (non-shutting-down) system, then sync.
set -e
cc -O2 -Wall -pthread -o /root/churn /root/churn.c
cc -O2 -Wall -o /root/rebootdirect /root/rebootdirect.c
sync
echo "build ok:"
ls -l /root/churn /root/rebootdirect