freebsd-nq/sys/modules/linux/linux.sh
Martin Cracauer 62e334347c Load linux emulator lkm only when not already loaded. This avoids
leftover files in /tmp. Script slightly modified from PR version
to use fewer processes.
PR:		i386/7725
Submitted by:	Stefan Eggers seggers@semyam.dinoco.de
1998-09-07 16:15:59 +00:00

11 lines
216 B
Bash

#!/bin/sh
# $Id: linux,v 1.4 1997/02/22 12:48:25 peter Exp $
if modstat -n linux_mod > /dev/null ; then
echo Linux lkm already loaded
exit 1
else
modload -e linux_mod -u -q -o /tmp/linux_mod /lkm/linux_mod.o
fi