Added new script modified from the FreeBSD release to avoid kernel panics.