From owner-freebsd-questions@FreeBSD.ORG Sun Feb 25 23:28:09 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 50AA216A401 for ; Sun, 25 Feb 2007 23:28:09 +0000 (UTC) (envelope-from deeptech71@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.185]) by mx1.freebsd.org (Postfix) with ESMTP id DD43013C442 for ; Sun, 25 Feb 2007 23:28:04 +0000 (UTC) (envelope-from deeptech71@gmail.com) Received: by nf-out-0910.google.com with SMTP id k27so1321536nfc for ; Sun, 25 Feb 2007 15:28:03 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=FR+AZQxt1ozXi3c/kBMgzxm7X7bbYTiYjOOKofpwspDhCLu0YlVwP45S3+/7kE28XT3WNUNtc5TwUsAB4n8FQva8qeHXQ5UHeeK7mdtnaG+vDADCLCfpHvjyY4REPgOZb06dhfoIbjASntyei8zE1eijruezExiDPDi/CQM2sus= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=LKZMsWJ8F0t3L1FIszqIkBJilPIepTK/JzQkW/KFGJG48g0JbYvfvASkfZ5DEUW84RMmzUNfT5RohA3uepI8aA1hi50sWuYO6Ku4sRWq78iP5OnuKYdhaR7Pv7xkKV7H/42ZqC8kJipG35yiFmvJL8ISXFp3Q95EEWMRpN1ZAkg= Received: by 10.49.90.4 with SMTP id s4mr11427338nfl.1172446082639; Sun, 25 Feb 2007 15:28:02 -0800 (PST) Received: from ?192.168.123.111? ( [84.0.107.64]) by mx.google.com with ESMTP id i5sm19189428mue.2007.02.25.15.28.01; Sun, 25 Feb 2007 15:28:02 -0800 (PST) Message-ID: <45E21B90.7060102@gmail.com> Date: Mon, 26 Feb 2007 00:28:16 +0100 From: deeptech71@gmail.com User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <45E0C941.2030203@gmail.com> <20070226094300.5f40b710@localhost> In-Reply-To: <20070226094300.5f40b710@localhost> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: how to run root cmds when starting xorg? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Feb 2007 23:28:09 -0000 Norberto Meijome wrote: > On Sun, 25 Feb 2007 00:24:49 +0100 > deeptech71@gmail.com wrote: > >> From: deeptech71@gmail.com >> To: freebsd-questions@freebsd.org >> Subject: how to run root cmds when starting xorg? >> Date: Sun, 25 Feb 2007 00:24:49 +0100 >> Sender: owner-freebsd-questions@freebsd.org >> User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) >> >> how do i exec a kldload script when starting ttyv8 kdm (or xorg) ? > > modify the xorg or kdm startup script? Xorg's xinitrc is a user script. Or does one of the X server or client thing start as root? If so, which script runs? xinitrc didnt work.. "...../kdm -nodaemon": exactly which one (if any) executed as root? > why do you need such thing? I want to load sound support only when in a desktop environment, and auto-disable it when moving back to a console. That is, I need a script that loads sound when starting, and unloads when exiting kdm.