diff options
author | sheldonh <sheldonh@FreeBSD.org> | 2000-11-02 13:48:53 +0000 |
---|---|---|
committer | sheldonh <sheldonh@FreeBSD.org> | 2000-11-02 13:48:53 +0000 |
commit | f7c4ac38dc83d51ee188b9e34d42b14170ee0341 (patch) | |
tree | a747887c67403502b985bacf5f1ce605d951f1d8 /sys/modules | |
parent | 2e956aba3638e4e996a988c1f17cbfd4ff81fdaf (diff) | |
download | FreeBSD-src-f7c4ac38dc83d51ee188b9e34d42b14170ee0341.zip FreeBSD-src-f7c4ac38dc83d51ee188b9e34d42b14170ee0341.tar.gz |
Retire linux(8). Using shell scripts to load kernel loadable modules is
out of fashion. This particular case, unlike joy(8) and friends which
are just plain silly, did more than just load a kernel loadable module.
However, /etc/rc and the linux_base port were adjusted a while back to
cope with the absence of this script.
The only outstanding reason to hang on to it would have been for the
linux(8) manual page, which clued folks into the existence of the
Linuxulator. A new linux(4) was introduced a while back. It does
a much better job.
This script just isn't useful any more.
Diffstat (limited to 'sys/modules')
-rw-r--r-- | sys/modules/linux/Makefile | 6 | ||||
-rw-r--r-- | sys/modules/linux/linux.8 | 47 | ||||
-rw-r--r-- | sys/modules/linux/linux.sh | 21 |
3 files changed, 0 insertions, 74 deletions
diff --git a/sys/modules/linux/Makefile b/sys/modules/linux/Makefile index 83a3db1..fe762be 100644 --- a/sys/modules/linux/Makefile +++ b/sys/modules/linux/Makefile @@ -47,10 +47,4 @@ ${GENSYSCALL}: @/kern/makesyscalls.sh \ linux_sysent.c > linux_sysent.c.fixup mv -f linux_sysent.c.fixup linux_sysent.c -.if exists(${DESTDIR}/usr/bin) -afterinstall: - ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ - ${.CURDIR}/linux.sh ${DESTDIR}/usr/sbin/linux -.endif - .include <bsd.kmod.mk> diff --git a/sys/modules/linux/linux.8 b/sys/modules/linux/linux.8 deleted file mode 100644 index 13f3f0b..0000000 --- a/sys/modules/linux/linux.8 +++ /dev/null @@ -1,47 +0,0 @@ -.\" -.\" Copyright (c) 1997 -.\" The FreeBSD Project. 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. -.\" -.\" $FreeBSD$ -.\" -.Dd January 9, 1997 -.Dt LINUX 8 -.Os FreeBSD -.Sh NAME -.Nm linux -.Nd load the Linux image activator module -.Sh SYNOPSIS -.Nm linux -.Sh DESCRIPTION -The -.Nm -utility loads the Linux image activator module. -.Sh FILES -.Bl -tag -width /modules/linux.ko -.It Pa /modules/linux.ko -Linux image activator loadable kernel module. -.Sh SEE ALSO -.Xr kld 4 , -.Xr kldload 8 , -.Xr kldstat 8 , -.Xr kldunload 8 diff --git a/sys/modules/linux/linux.sh b/sys/modules/linux/linux.sh deleted file mode 100644 index a9215cf..0000000 --- a/sys/modules/linux/linux.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/sh - -# $FreeBSD$ - -FOUND=`kldstat -v | egrep 'linux(aout|elf)'` - -exitcode=0 - -if [ "x$FOUND" != x ] ; then - echo Linux driver already loaded - exitcode=1 -else - kldload linux - exitcode=$? -fi - -if [ -f /compat/linux/sbin/ldconfig ] ; then - /compat/linux/sbin/ldconfig -fi - -exit $exitcode |