aboutsummaryrefslogtreecommitdiffstats
path: root/comms/cdce/pkg-install
blob: b9c2c1f9a34a8fed12db17e3de7f1afee980296c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/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