This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NANO_NAME="custom" | |
NANO_ARCH="amd64" | |
NANO_KERNEL=GENERIC | |
NANO_DRIVE="da0" | |
NANO_PMAKE="make -j $(sysctl -n hw.ncpu)" | |
NANO_MEDIASIZE=1500000 | |
NANO_BOOTLOADER="boot/boot0" | |
NANO_IMGNAME="nanobsd_${NANO_NAME}_${NANO_DRIVE}.img" | |
NANO_IMAGES=2 | |
NANO_MODULES= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// rrd_temp.c | |
// Modified for sysctl OneWire data collection | |
// Created by Dr. Rolf Jansen on 2016-08-24. | |
// Copyright 2016 Dr. Rolf Jansen. All rights reserved. | |
// sudo cc rrd_temp.c -Wno-empty-body -Ofast -g0 -o rdd_temp | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <fcntl.h> | |
#include <signal.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TARGET_ARCH=i386 | |
KERNCONF=GENERIC | |
IMAGE_SIZE=$((1600 * 1000 * 1000)) | |
generic_i386_partition_image ( ) { | |
# basic setup | |
disk_partition_mbr | |
disk_ufs_create | |
# boot loader |