From b8f3015708e3efa37b0f2e1a4a85a21170679403 Mon Sep 17 00:00:00 2001 From: sthen Date: Thu, 12 Sep 2019 13:42:45 +0000 Subject: [PATCH] tpwireless requires machdep.allowaperture=1 or running before securelevel is set (e.g. in single-user mode) --- misc/tpwireless/Makefile | 7 ++++--- misc/tpwireless/src/tpwireless.c | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/misc/tpwireless/Makefile b/misc/tpwireless/Makefile index 0708aa20637..ecbc6cb85dd 100644 --- a/misc/tpwireless/Makefile +++ b/misc/tpwireless/Makefile @@ -1,8 +1,9 @@ -# $OpenBSD: Makefile,v 1.7 2019/07/12 20:47:54 sthen Exp $ +# $OpenBSD: Makefile,v 1.8 2019/09/12 13:42:45 sthen Exp $ -COMMENT= Set IBM Thinkpad BIOS bit to disable Wireless NIC ID check +COMMENT= set IBM Thinkpad BIOS bit to disable Wireless NIC ID check PKGNAME= tpwireless-0.2 +REVISION= 0 CATEGORIES= misc DISTFILES= @@ -19,7 +20,7 @@ FAKE_FLAGS= BINDIR="${PREFIX}/bin" MAKE_ENV= CC="${CC}" # Just link the contained source files into the build environment -post-extract: +post-extract: @lndir ${.CURDIR}/src ${WRKDIR} NO_TEST= Yes diff --git a/misc/tpwireless/src/tpwireless.c b/misc/tpwireless/src/tpwireless.c index 835b6c4cf22..122e8464a0a 100644 --- a/misc/tpwireless/src/tpwireless.c +++ b/misc/tpwireless/src/tpwireless.c @@ -70,7 +70,7 @@ main(int argc, char **argv) } if (i386_iopl(3) == -1) - errx(1, "iopl"); + errx(1, "iopl failed: set machdep.allowaperture=1 or run single-user"); outb(0x70, 0x6a); before = inb(0x71);