summaryrefslogtreecommitdiff
path: root/build_tools
diff options
context:
space:
mode:
authortzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-12-16 17:38:15 +0000
committertzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-12-16 17:38:15 +0000
commit4391b4a6ee42bdfd8e097c5ee5485e9eb13f19a0 (patch)
tree4d0fd4ff80effe0d00a6b722ea16ddcc4f306603 /build_tools
parent2a548d23113e133f3e7a8a75a91bc617f3d6cbcc (diff)
Simplify udev rules so they will be in line with ones provided by
distributions and allow simple overriding of file permissions. Closes issue #11276 . git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@3493 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'build_tools')
-rwxr-xr-xbuild_tools/genudevrules16
1 files changed, 10 insertions, 6 deletions
diff --git a/build_tools/genudevrules b/build_tools/genudevrules
index 3ba757d..8e8d556 100755
--- a/build_tools/genudevrules
+++ b/build_tools/genudevrules
@@ -21,11 +21,15 @@ else
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