[Lunar-commits] <moonbase> udev: adding a lunar rule for bluetooth /dev/rfkill.

Dennis `stumbles` Veatch stumbles at lunar-linux.org
Sun Nov 1 17:56:19 CET 2009


commit 911fcb7278de31fec5b9ed04cb7923095c6329b2
Author: Dennis `stumbles` Veatch <stumbles at lunar-linux.org>
Date:   Sun Nov 1 11:56:19 2009 -0500

    udev: adding a lunar rule for bluetooth /dev/rfkill.
---
 filesys/udev/BUILD |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/filesys/udev/BUILD b/filesys/udev/BUILD
index 628cfba..b51ec6d 100644
--- a/filesys/udev/BUILD
+++ b/filesys/udev/BUILD
@@ -11,6 +11,9 @@
     patch_it $SOURCE2 0 &&
     find $SOURCE_DIRECTORY/rules -type f -name '*.rules' -exec sed -i 's/uucp/dialout/g' {} \;  &&
 
+# Borrowing from the Arch folks to avoid any user related permissions.
+    echo "# Bluetooth rfkill switch" >> rules/gentoo/40-gentoo.rules &&
+    echo 'KERNEL=="rfkill", ENV{ACL_MANAGE}="1", GROUP="uucp"' >> rules/gentoo/40-gentoo.rules &&
     mv -f rules/gentoo/40-gentoo.rules rules/gentoo/40-lunar.rules  &&
 
     if [ "$WIPE_NET_DEV" == "y" ] ; then


More information about the Lunar-commits mailing list