From 7547786cc6cbfe89c0b3a610428e80c6dcdf37d9 Mon Sep 17 00:00:00 2001 From: jmz Date: Sat, 16 Mar 1996 01:35:48 +0000 Subject: Build LKM for joystick driver. --- lkm/joy/Makefile | 17 +++++++++++++++++ lkm/joy/joy | 4 ++++ lkm/joy/joy.8 | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 67 insertions(+) create mode 100644 lkm/joy/Makefile create mode 100644 lkm/joy/joy create mode 100644 lkm/joy/joy.8 (limited to 'lkm') diff --git a/lkm/joy/Makefile b/lkm/joy/Makefile new file mode 100644 index 0000000..77b969d --- /dev/null +++ b/lkm/joy/Makefile @@ -0,0 +1,17 @@ +.PATH: ${.CURDIR}/../../sys/i386/isa +KMOD = joy_mod +SRCS = joy.c joy.h +MAN8 = joy.8 + +CFLAGS += -I. -I/sys -DJOY_MODULE -DACTUALLY_LKM_NOT_KERNEL +CLEANFILES += joy.h + +joy.h: + echo "#define NJOY 1" > joy.h + + +afterinstall: + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ + ${.CURDIR}/joy ${DESTDIR}/usr/bin + +.include diff --git a/lkm/joy/joy b/lkm/joy/joy new file mode 100644 index 0000000..3f5bbb9 --- /dev/null +++ b/lkm/joy/joy @@ -0,0 +1,4 @@ +#!/bin/sh +# $Id$ + +modload -q -u -A `sysctl -n kern.bootfile` /lkm/joy_mod.o diff --git a/lkm/joy/joy.8 b/lkm/joy/joy.8 new file mode 100644 index 0000000..795d586 --- /dev/null +++ b/lkm/joy/joy.8 @@ -0,0 +1,46 @@ +.\" +.\" Copyright (c) 1996 Jean-Marc Zucconi +.\" All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\" notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\" notice, this list of conditions and the following disclaimer in the +.\" documentation and/or other materials provided with the distribution. +.\" +.\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY EXPRESS OR +.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES +.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +.\" IN NO EVENT SHALL THE DEVELOPERS BE LIABLE FOR ANY DIRECT, INDIRECT, +.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT +.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF +.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +.\" +.\" $Id$ +.\" +.Dd March 16, 1996 +.Dt JOY 8 +.Os FreeBSD +.Sh NAME +.Nm joy +.Nd load the joystick driver kernel module +.Sh SYNOPSIS +.Nm joy +.Sh DESCRIPTION +The +.Nm +utility loads the joystick driver kernel module. +.Sh FILES +.Bl -tag -width /lkm/joy_mod.o +.It Pa /lkm/joy_mod.o +joystick loadable kernel module. +.Sh "SEE ALSO" +.Xr joy 4 , +.Xr modload 8 , +.Xr lkm 4 -- cgit v1.1