#!/bin/sh# an installation script for linux_devtoolscase"$2"in
PRE-INSTALL)if[-z"`kldstat -v |${GREP}-E 'linux(aout|elf)'`"];thenecho'Linux mode is not enabled.'echo'Loading linux kernel module now...'if! kldload linux;thenecho'The linux kernel module could not be loaded.'echo'Please enable linux mode manually and retry.'exit1fi;;esacexit0