[zaptel-commits] tzafrir: trunk r2581 -
/trunk/build_tools/genudevrules
zaptel-commits at lists.digium.com
zaptel-commits at lists.digium.com
Wed Jun 6 13:48:00 MST 2007
Author: tzafrir
Date: Wed Jun 6 15:48:00 2007
New Revision: 2581
URL: http://svn.digium.com/view/zaptel?view=rev&rev=2581
Log:
Make the file more readable and make it easier to override permissions.
Modified:
trunk/build_tools/genudevrules
Modified: trunk/build_tools/genudevrules
URL: http://svn.digium.com/view/zaptel/trunk/build_tools/genudevrules?view=diff&rev=2581&r1=2580&r2=2581
==============================================================================
--- trunk/build_tools/genudevrules (original)
+++ trunk/build_tools/genudevrules Wed Jun 6 15:48:00 2007
@@ -1,5 +1,6 @@
#!/bin/sh
+# FIXME: replce this script with autoconf-generation.
ver=`udevinfo -V | cut -f3 -d" "`
if [ -z "${ver}" ]; then
@@ -22,10 +23,13 @@
cat <<EOF
# zaptel devices with ownership/permissions for running as non-root
-KERNEL${match}"zapctl", NAME="zap/ctl", OWNER="asterisk", GROUP="asterisk", MODE="0660"
-KERNEL${match}"zaptranscode", NAME="zap/transcode", 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}"zap[0-9]*", NAME="zap/%n", OWNER="asterisk", GROUP="asterisk", MODE="0660"
+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"
+# Feel free to change OWNER and GROUP and/or to drop one of them or
+# both:
+SUBSYSTEM${match}"zaptel", OWNER="asterisk", GROUP="asterisk", MODE="0660"
EOF
More information about the zaptel-commits
mailing list