Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Oct 2013 21:28:15 +0000
From:      "Thomas Mueller" <mueller6724@bellsouth.net>
To:        freebsd-questions@FreeBSD.org
Subject:   Disable devices at boot time?
Message-ID:  <9F.B4.02506.FE40F525@cdptpa-oedge01>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9F.B4.02506.FE40F525>