aboutsummaryrefslogtreecommitdiffstats
path: root/emulators/linux_base-8/Makefile
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>1999-08-18 20:49:53 +0800
committermarcel <marcel@FreeBSD.org>1999-08-18 20:49:53 +0800
commit507fd33573fb948e4be95f15b8c5784af2aa56e3 (patch)
tree0492ea04fdfbe435b6872ee19c08f7381af9ad1e /emulators/linux_base-8/Makefile
parent0fe66ad87b42a3ad89a61510782570589a85c9d3 (diff)
downloadfreebsd-ports-graphics-507fd33573fb948e4be95f15b8c5784af2aa56e3.tar.gz
freebsd-ports-graphics-507fd33573fb948e4be95f15b8c5784af2aa56e3.tar.zst
freebsd-ports-graphics-507fd33573fb948e4be95f15b8c5784af2aa56e3.zip
Fix the way the port figures out if linux support is present in the kernel.
It now also works when the linuxulator is compiled into the kernel (using options COMPAT_LINUX). Due to my misunderstanding, PR/12918 has been closed for the wrong reasons. My apologies to the originator. PR: 12918 Originator: Dean Lombardo <dlombardo@excite.com>
Diffstat (limited to 'emulators/linux_base-8/Makefile')
-rw-r--r--emulators/linux_base-8/Makefile14
1 files changed, 7 insertions, 7 deletions
diff --git a/emulators/linux_base-8/Makefile b/emulators/linux_base-8/Makefile
index 9ad65d92c06..06538e97193 100644
--- a/emulators/linux_base-8/Makefile
+++ b/emulators/linux_base-8/Makefile
@@ -3,7 +3,7 @@
# Date created: Jul 7, 1999
# Whom: marcel@FreeBSD.org
#
-# $Id: Makefile,v 1.27 1999/08/06 15:13:17 billf Exp $
+# $Id: Makefile,v 1.28 1999/08/08 11:40:53 marcel Exp $
#
DISTNAME= linux_base
@@ -105,13 +105,13 @@ NEEDLOADLINK= true
.endif
do-install:
- @if [ -z "`kldstat | ${GREP} linux.ko | ${AWK} '{print $1}'`" ]; then \
- ${ECHO} 'The Linux emulator kernel module is not loaded.\
- Loading Linux emulator kernel module...' | fmt; \
+ @if [ -z "`kldstat -v | ${GREP} -E 'linux(aout|elf)'`" ]; then \
+ ${ECHO} 'Linux mode is not enabled.\
+ Loading linux kernel module...' | fmt; \
linux || { \
- ${ECHO} 'The Linux emulator kernel module could not be\
- loaded. Please manually load the module and retry.\
- See "man linux" for details.' | fmt; \
+ ${ECHO} 'The linux kernel module could not be loaded.\
+ Please manually load the module and retry.\
+ See "man linux" for details.' | fmt; \
${FALSE}; \
};\
fi