Suppress error output from sysctl: kern.allowdt doesn't exist on
authorguenther <guenther@openbsd.org>
Sun, 19 Dec 2021 01:07:50 +0000 (01:07 +0000)
committerguenther <guenther@openbsd.org>
Sun, 19 Dec 2021 01:07:50 +0000 (01:07 +0000)
several archs and complaining about that from the Makefile doesn't
help anyone.

ok deraadt@ bluhm@

regress/usr.sbin/btrace/Makefile

index f9e0341..08654e3 100644 (file)
@@ -1,7 +1,7 @@
-# $OpenBSD: Makefile,v 1.24 2021/12/02 17:09:46 kn Exp $
+# $OpenBSD: Makefile,v 1.25 2021/12/19 01:07:50 guenther Exp $
 
 BTRACE?=                /usr/sbin/btrace
-ALLOWDT!=              sysctl -n kern.allowdt
+ALLOWDT!=              sysctl -n kern.allowdt 2>/dev/null
 
 # scripts that don't need /dev/dt
 BT_LANG_SCRIPTS=       arithm beginend boolean comments delete exit \