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.
This commit is contained in:
parent
2e956aba36
commit
f7c4ac38dc
@ -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>
|
||||
|
@ -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
|
@ -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
|
Loading…
Reference in New Issue
Block a user