Currently the driver is maintained out-of-tree as a set of files to be downloaded and built manually. PR: ports/76802 Submitted by: Craig Boston <craig@yekse.gank.org>
18 lines
336 B
Bash
18 lines
336 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
|
|
PREFIX=${PKG_PREFIX:-/usr/local}
|
|
|
|
[ "x$1" = "x" ] && exit 1
|
|
if [ "x$2" = "xPOST-INSTALL" ]; then
|
|
if [ `sysctl -n kern.osreldate` -ge 500000 ]; then
|
|
KMODDIR="/boot/modules"
|
|
else
|
|
KMODDIR="/modules"
|
|
fi
|
|
|
|
install -C -o root -g wheel -m 555 ${PREFIX}/lib/cdce/if_cdce.ko \
|
|
${KMODDIR}
|
|
kldxref ${KMODDIR}
|
|
fi
|