#!/bin/sh

export MACHINE=`machine`
cd /usr/src/sys/arch/$MACHINE/conf
echo "Doing the config for GENERIC"
config GENERIC
cd ../compile/GENERIC
echo "Starting building kernel ..."
make clean && make depend && make
echo "Installing new kernel..."
cp /bsd /bsd.old && cp bsd /bsd && echo "OK"