freebsd-ports/comms/cdce/pkg-install
Pav Lucistnik 5882969f93 CDC Ethernet driver (driver for USB Linux-based PDAs: Sharp Zaurus, YOPY, etc).
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>
2005-01-29 23:47:47 +00:00

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