diff options
author | wosch <wosch@FreeBSD.org> | 1996-10-06 22:10:35 +0000 |
---|---|---|
committer | wosch <wosch@FreeBSD.org> | 1996-10-06 22:10:35 +0000 |
commit | 593021f662304ea02106f06dd32c2b7a22728a2b (patch) | |
tree | 7e896bdda81d2e80c3cbec1cdb8f9c9376024db3 /share | |
parent | e31664a6a3a4ec1e05f757c261a0113db11f9edf (diff) | |
download | FreeBSD-src-593021f662304ea02106f06dd32c2b7a22728a2b.zip FreeBSD-src-593021f662304ea02106f06dd32c2b7a22728a2b.tar.gz |
add variables MODLOAD and MODUNLOAD for modlad/modunload commands
Diffstat (limited to 'share')
-rw-r--r-- | share/mk/bsd.kmod.mk | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/share/mk/bsd.kmod.mk b/share/mk/bsd.kmod.mk index 99b41e0..98ce1a1 100644 --- a/share/mk/bsd.kmod.mk +++ b/share/mk/bsd.kmod.mk @@ -1,5 +1,5 @@ # From: @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91 -# $Id: bsd.kmod.mk,v 1.25 1996/08/31 14:46:58 bde Exp $ +# $Id: bsd.kmod.mk,v 1.26 1996/09/18 06:09:13 swallace Exp $ # # The include file <bsd.kmod.mk> handles installing Loadable Kernel Modules. # <bsd.kmod.mk> includes the file named "../Makefile.inc" if it exists, @@ -37,10 +37,14 @@ # # LN_FLAGS Flags for ln(1) (see variable LINKS) # +# MODLOAD Command to load a kernel module [/sbin/modload] +# +# MODUNLOAD Command to unload a kernel module [/sbin/modunload] +# # NOMAN LKM does not have a manual page if set. # # PROG The name of the loadable kernel module to build. -# If not supplied, ${KMOD} is used. +# If not supplied, ${KMOD}.o is used. # # PSEUDO_LKM ??? # @@ -80,6 +84,9 @@ # bsd.man.mk: maninstall # +MODLOAD?= /sbin/modload +MODUNLOAD?= /sbin/modunload + .if exists(${.CURDIR}/../Makefile.inc) .include "${.CURDIR}/../Makefile.inc" .endif @@ -193,12 +200,12 @@ tags: ${SRCS} _SUBDIR .if !target(load) load: ${PROG} - /sbin/modload -o ${KMOD} -e${KMOD} ${PROG} + ${MODLOAD} -o ${KMOD} -e${KMOD} ${PROG} .endif .if !target(unload) unload: ${PROG} - /sbin/modunload -n ${KMOD} + ${MODUNLOAD} -n ${KMOD} .endif KERN= ${.CURDIR}/../../sys/kern |