summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorthompsa <thompsa@FreeBSD.org>2008-12-17 19:12:30 +0000
committerthompsa <thompsa@FreeBSD.org>2008-12-17 19:12:30 +0000
commit5beb5f2d952ce87b3eee93996d028cf87523c164 (patch)
tree2d4217beaa0b27e7f84b106ede422dd53aaba047 /etc
parent6a06481400f465d20b6ba8737f46132e3549aefa (diff)
downloadFreeBSD-src-5beb5f2d952ce87b3eee93996d028cf87523c164.zip
FreeBSD-src-5beb5f2d952ce87b3eee93996d028cf87523c164.tar.gz
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.
Diffstat (limited to 'etc')
-rw-r--r--etc/Makefile1
-rw-r--r--etc/devd.conf23
-rw-r--r--etc/devd/Makefile9
-rw-r--r--etc/devd/asus.conf52
-rw-r--r--etc/mtree/BSD.root.dist2
5 files changed, 64 insertions, 23 deletions
diff --git a/etc/Makefile b/etc/Makefile
index 4fe7649..b7c8220 100644
--- a/etc/Makefile
+++ b/etc/Makefile
@@ -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
diff --git a/etc/devd.conf b/etc/devd.conf
index 601e588..2b12af0 100644
--- a/etc/devd.conf
+++ b/etc/devd.conf
@@ -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
diff --git a/etc/devd/Makefile b/etc/devd/Makefile
new file mode 100644
index 0000000..f2bb184
--- /dev/null
+++ b/etc/devd/Makefile
@@ -0,0 +1,9 @@
+# $FreeBSD$
+
+FILES= asus.conf
+
+NO_OBJ=
+FILESDIR= /etc/devd
+FILESMODE= 644
+
+.include <bsd.prog.mk>
diff --git a/etc/devd/asus.conf b/etc/devd/asus.conf
new file mode 100644
index 0000000..7671bd1
--- /dev/null
+++ b/etc/devd/asus.conf
@@ -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 "";
+#};
diff --git a/etc/mtree/BSD.root.dist b/etc/mtree/BSD.root.dist
index 2bbd28c..ce8a456 100644
--- a/etc/mtree/BSD.root.dist
+++ b/etc/mtree/BSD.root.dist
@@ -28,6 +28,8 @@
..
defaults
..
+ devd
+ ..
gnats
..
gss
OpenPOWER on IntegriCloud