#!/bin/sh
# $Id: kernel_patch.sh,v 1.3 2004/09/15 15:44:23 drizzt Exp $

KERNELCONF=/usr/src/sys/i386/conf/FREESBIE

if [ -d /usr/src/sys/modules/io ] ; then
	echo "device		io			# I/O device" >> $KERNELCONF
fi

if [ -d /usr/src/sys/modules/mem ] ; then
	echo "device		mem			# Memory and kernel memory devices" >> $KERNELCONF
fi

if [ -d /usr/src/sys/modules/null ] ; then
	echo "device		null		# Null and zero devices" >> $KERNELCONF
fi

fgrep PFIL_HOOKS /usr/src/sys/conf/NOTES 2>&1 > /dev/null

if [ $? = "0" ]; then
	echo "options		PFIL_HOOKS		#required by IPFILTER" >> $KERNELCONF
fi
