[zaptel-commits] tzafrir: branch 1.2 r3493 - /branches/1.2/build_tools/genudevrules

SVN commits to the Zaptel project zaptel-commits at lists.digium.com
Sun Dec 16 11:38:16 CST 2007


Author: tzafrir
Date: Sun Dec 16 11:38:15 2007
New Revision: 3493

URL: http://svn.digium.com/view/zaptel?view=rev&rev=3493
Log:
Simplify udev rules so they will be in line with ones provided by
distributions and allow simple overriding of file permissions.

Closes issue #11276 .

Modified:
    branches/1.2/build_tools/genudevrules

Modified: branches/1.2/build_tools/genudevrules
URL: http://svn.digium.com/view/zaptel/branches/1.2/build_tools/genudevrules?view=diff&rev=3493&r1=3492&r2=3493
==============================================================================
--- branches/1.2/build_tools/genudevrules (original)
+++ branches/1.2/build_tools/genudevrules Sun Dec 16 11:38:15 2007
@@ -21,11 +21,15 @@
 fi
 
 cat <<EOF
+# udev rules to generate the /dev/zap device files (if not yet provided 
+# by your distribution):
+KERNEL${match}"zapctl", NAME="zap/ctl"
+KERNEL${match}"zaptranscode", NAME="zap/transcode"
+KERNEL${match}"zaptimer", NAME="zap/timer"
+KERNEL${match}"zapchannel", NAME="zap/channel"
+KERNEL${match}"zappseudo", NAME="zap/pseudo"
+KERNEL${match}"zap[0-9]*", NAME="zap/%n"
+
 # zaptel devices with ownership/permissions for running as non-root
-KERNEL${match}"zapctl", NAME="zap/ctl", OWNER="asterisk", GROUP="asterisk", MODE="0660"
-KERNEL${match}"zaptimer", NAME="zap/timer", OWNER="asterisk", GROUP="asterisk", MODE="0660"
-KERNEL${match}"zapchannel", NAME="zap/channel", OWNER="asterisk", GROUP="asterisk", MODE="0660"
-KERNEL${match}"zappseudo", NAME="zap/pseudo", OWNER="asterisk", GROUP="asterisk", MODE="0660"
-KERNEL${match}"zaptranscode", NAME="zap/transcode", OWNER="asterisk", GROUP="asterisk", MODE="0660"
-KERNEL${match}"zap[0-9]*", NAME="zap/%n", OWNER="asterisk", GROUP="asterisk", MODE="0660"
+SUBSYSTEM=="zaptel",  OWNER="asterisk", GROUP="asterisk", MODE="0660"
 EOF




More information about the zaptel-commits mailing list