From owner-svn-src-all@FreeBSD.ORG Wed Dec 17 19:12:31 2008 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 14A8B1065670; Wed, 17 Dec 2008 19:12:31 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id F25BE8FC1A; Wed, 17 Dec 2008 19:12:30 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id mBHJCUDV012840; Wed, 17 Dec 2008 19:12:30 GMT (envelope-from thompsa@svn.freebsd.org) Received: (from thompsa@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id mBHJCUBQ012835; Wed, 17 Dec 2008 19:12:30 GMT (envelope-from thompsa@svn.freebsd.org) Message-Id: <200812171912.mBHJCUBQ012835@svn.freebsd.org> From: Andrew Thompson Date: Wed, 17 Dec 2008 19:12:30 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r186249 - in head/etc: . devd mtree X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Dec 2008 19:12:31 -0000 Author: thompsa Date: Wed Dec 17 19:12:30 2008 New Revision: 186249 URL: http://svn.freebsd.org/changeset/base/186249 Log: Add /etc/devd/ and move hardware specific configuration there. This makes it easier to maintain custom rules for non-system things like ACPI hotkeys. /etc/devd.conf is already set up to check this directory, no change needed there. Added: head/etc/devd/ head/etc/devd/Makefile (contents, props changed) head/etc/devd/asus.conf (contents, props changed) Modified: head/etc/Makefile head/etc/devd.conf head/etc/mtree/BSD.root.dist Modified: head/etc/Makefile ============================================================================== --- head/etc/Makefile Wed Dec 17 19:05:58 2008 (r186248) +++ head/etc/Makefile Wed Dec 17 19:12:30 2008 (r186249) @@ -162,6 +162,7 @@ distribution: ${_+_}cd ${.CURDIR}/bluetooth; ${MAKE} install .endif ${_+_}cd ${.CURDIR}/defaults; ${MAKE} install + ${_+_}cd ${.CURDIR}/devd; ${MAKE} install ${_+_}cd ${.CURDIR}/gss; ${MAKE} install ${_+_}cd ${.CURDIR}/periodic; ${MAKE} install ${_+_}cd ${.CURDIR}/rc.d; ${MAKE} install Modified: head/etc/devd.conf ============================================================================== --- head/etc/devd.conf Wed Dec 17 19:05:58 2008 (r186248) +++ head/etc/devd.conf Wed Dec 17 19:12:30 2008 (r186249) @@ -277,29 +277,6 @@ notify 0 { action "mixer vol +10"; }; -# The next blocks enable volume hotkeys that can be found on the Asus EeePC -# The four keys above the keyboard notify 0x1a through to 0x1d respectively -notify 0 { - match "system" "ACPI"; - match "subsystem" "ASUS-Eee"; - match "notify" "0x13"; - action "mixer 0"; -}; - -notify 0 { - match "system" "ACPI"; - match "subsystem" "ASUS-Eee"; - match "notify" "0x14"; - action "mixer vol -10"; -}; - -notify 0 { - match "system" "ACPI"; - match "subsystem" "ASUS-Eee"; - match "notify" "0x15"; - action "mixer vol +10"; -}; - /* EXAMPLES TO END OF FILE # The following might be an example of something that a vendor might Added: head/etc/devd/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/etc/devd/Makefile Wed Dec 17 19:12:30 2008 (r186249) @@ -0,0 +1,9 @@ +# $FreeBSD$ + +FILES= asus.conf + +NO_OBJ= +FILESDIR= /etc/devd +FILESMODE= 644 + +.include Added: head/etc/devd/asus.conf ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/etc/devd/asus.conf Wed Dec 17 19:12:30 2008 (r186249) @@ -0,0 +1,52 @@ +# $FreeBSD$ +# +# ASUS specific devd events + +# The next blocks enable volume hotkeys that can be found on the Asus EeePC +notify 0 { + match "system" "ACPI"; + match "subsystem" "ASUS-Eee"; + match "notify" "0x13"; + action "mixer 0"; +}; + +notify 0 { + match "system" "ACPI"; + match "subsystem" "ASUS-Eee"; + match "notify" "0x14"; + action "mixer vol -10"; +}; + +notify 0 { + match "system" "ACPI"; + match "subsystem" "ASUS-Eee"; + match "notify" "0x15"; + action "mixer vol +10"; +}; + +# Enable user hotkeys that can be found on the Asus EeePC +# The four keys above the keyboard notify 0x1a through to 0x1d respectively +#notify 0 { +# match "system" "ACPI"; +# match "subsystem" "ASUS-Eee"; +# match "notify" "0x1a"; +# action ""; +#}; +#notify 0 { +# match "system" "ACPI"; +# match "subsystem" "ASUS-Eee"; +# match "notify" "0x1b"; +# action ""; +#}; +#notify 0 { +# match "system" "ACPI"; +# match "subsystem" "ASUS-Eee"; +# match "notify" "0x1c"; +# action ""; +#}; +#notify 0 { +# match "system" "ACPI"; +# match "subsystem" "ASUS-Eee"; +# match "notify" "0x1d"; +# action ""; +#}; Modified: head/etc/mtree/BSD.root.dist ============================================================================== --- head/etc/mtree/BSD.root.dist Wed Dec 17 19:05:58 2008 (r186248) +++ head/etc/mtree/BSD.root.dist Wed Dec 17 19:12:30 2008 (r186249) @@ -28,6 +28,8 @@ .. defaults .. + devd + .. gnats .. gss