From owner-freebsd-questions@FreeBSD.ORG Sat Mar 2 18:03:51 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id A1D89CB4 for ; Sat, 2 Mar 2013 18:03:51 +0000 (UTC) (envelope-from kaltheat@zoho.com) Received: from sender1.zohomail.com (sender1.zohomail.com [72.5.230.95]) by mx1.freebsd.org (Postfix) with ESMTP id 8548BA6C for ; Sat, 2 Mar 2013 18:03:51 +0000 (UTC) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=zapps768; d=zoho.com; h=date:from:to:cc:subject:message-id:references:mime-version:content-type:in-reply-to:user-agent:sender; b=rxz1lM+YJW7fkvip2SNyNaWQAXN0AurZsJIOVYRfqxNWjyuAwianGp1YZ62t7C2LRRxfWISDyeI7 MhzYeB69gfaz9u0wFvXH2ptSJ4zOq1Tfl9YQNvumxN0n96TSAMQt Received: from sol (106-158-103-86.dynamic.dsl.tng.de [86.103.158.106]) by mx.zohomail.com with SMTPS id 1362247420159506.14941316272643; Sat, 2 Mar 2013 10:03:40 -0800 (PST) Date: Sat, 2 Mar 2013 19:03:32 +0100 From: kaltheat@googlemail.com To: CeDeROM Subject: Re: how to disable bluetooth Message-ID: <20130302180332.GA54872@sol> References: <20130227174137.cc0c9ad4.freebsd@edvax.de> <20130301183049.GB2161@sol> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: kaltheat@zoho.com X-ZohoMailClient: External X-Zoho-Virus-Status: 2 Cc: freebsd-questions@freebsd.org 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: Sat, 02 Mar 2013 18:03:51 -0000 On Fri, Mar 01, 2013 at 09:50:45PM +0100, CeDeROM wrote: > On Fri, Mar 1, 2013 at 7:30 PM, kaltheat wrote: > > On Wed, Feb 27, 2013 at 06:31:38PM +0100, CeDeROM wrote: > >> hey hey :-) its not that i dont want the bluetooth at all, just want to > >> shut it down when its supposed to be shut down :-) bluetooth stack is > >> always functional and my device is always visible even if i disable all > >> bluetooth services, this seems insecure a bit huh. :-) > > > > You might want to create a cutomized minimal kernel and load every module > > either by /boot/loader.conf or by hand. > > Yea, I have noticed that defaul kernel now contains everything. I am > not sure if this is a good choice. Do you know how can I mark which > code pieces should be build as modules and which ones should become > part of kernel? I got lots of modules - are they built into the kernel > or loaded one by one at boot time? > > Thank you! :-) > Tomek Well. I don't think that it contains everything. Do `kldstat -v` to get informations on modules built into kernel and modules loaded seperately. You can mark code pieces you want to have in kernel by writing a KERNCONF file. Details can be taken from handbook[1]. You may find other step-by-step instructions in forum[2] and on several blogs. I saw some posts of people sharing their minimal kernel configuration file. It's interesting for people using laptops and wanting to save as much power as possible, too. Regards, kaltheat [1] http://www.freebsd.org/doc/handbook/kernelconfig-building.html [2] https://forums.freebsd.org/