diff options
author | tzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-06-06 20:48:00 +0000 |
---|---|---|
committer | tzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-06-06 20:48:00 +0000 |
commit | 61bb638e4941c3e4cad3ba5f9736bb09f3155609 (patch) | |
tree | b3aece0ca66baf89dcd080fa182ce3c65ebeb6a7 | |
parent | fa1800a8a8157d44276758f850aa5d50ad85573c (diff) |
Make the file more readable and make it easier to override permissions.
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@2581 5390a7c7-147a-4af0-8ec9-7488f05a26cb
-rwxr-xr-x | build_tools/genudevrules | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/build_tools/genudevrules b/build_tools/genudevrules index beb6b8d..11d25b1 100755 --- a/build_tools/genudevrules +++ b/build_tools/genudevrules @@ -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 @@ fi 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 |