From owner-freebsd-questions@FreeBSD.ORG Wed Oct 16 21:28:16 2013 Return-Path: Delivered-To: freebsd-questions@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 503DC37E for ; Wed, 16 Oct 2013 21:28:16 +0000 (UTC) (envelope-from mueller6721@twc.com) Received: from cdptpa-oedge-vip.email.rr.com (cdptpa-outbound-snat.email.rr.com [107.14.166.226]) by mx1.freebsd.org (Postfix) with ESMTP id 1CAE92C01 for ; Wed, 16 Oct 2013 21:28:15 +0000 (UTC) Received: from [74.130.200.176] ([74.130.200.176:56370] helo=localhost) by cdptpa-oedge01 (envelope-from ) (ecelerity 3.5.0.35861 r(Momo-dev:tip)) with ESMTP id 9F/B4-02506-FE40F525; Wed, 16 Oct 2013 21:28:15 +0000 Date: Wed, 16 Oct 2013 21:28:15 +0000 Message-ID: <9F.B4.02506.FE40F525@cdptpa-oedge01> From: "Thomas Mueller" To: freebsd-questions@FreeBSD.org Subject: Disable devices at boot time? X-RR-Connecting-IP: 107.14.168.118:25 X-Cloudmark-Score: 0 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Oct 2013 21:28:16 -0000 Is there any way in FreeBSD to disable or enable devices on boot? NetBSD has a flag -c (userconf) to boot that does this, if it works. I tried it, but it immediately hung the computer, requiring Reset button. Man page can be viewed at http://netbsd.gw.com/cgi-bin/man-cgi?boot++NetBSD-current Section on userconf is -c Sets the RB_USERCONF flag in boothowto. This causes the kernel to enter the userconf(4) device configuration man- ager as soon as possible during the boot. userconf(4) allows devices to be enabled or disabled, and allows device locators (such as hardware addresses or bus num- bers) to be modified before the kernel attempts to attach the devices. Tom