#!/bin/sh

export MACHINE=`machine`


cd /usr/src/sys/arch/$MACHINE/conf
# substitute #option with option for lines which contain NTFS
sed -e '/NTFS/s/#option/option/g' GENERIC > NTFS

echo "Doing the config for NTFS"
config NTFS
cd ../compile/NTFS
echo "Starting building kernel ..."
make clean && make depend && make
cp /bsd /bsd.old && cp bsd /bsd && echo "You can now reboot the system."