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

SVN commits to the Zaptel project zaptel-commits at lists.digium.com
Wed Mar 26 03:36:09 CDT 2008


Author: tzafrir
Date: Wed Mar 26 03:36:08 2008
New Revision: 4085

URL: http://svn.digium.com/view/zaptel?view=rev&rev=4085
Log:
Don't easily fail for missing udevinfo. 
Nobody has that older udev version (or otherwise we might have recieved
a bug report about a bogus == rule).

TODO: fix the UDEVRULES test in Makefile.

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=4085&r1=4084&r2=4085
==============================================================================
--- branches/1.2/build_tools/genudevrules (original)
+++ branches/1.2/build_tools/genudevrules Wed Mar 26 03:36:08 2008
@@ -3,8 +3,8 @@
 ver=`udevinfo -V | cut -f3 -d" "`
 
 if [ -z "${ver}" ]; then
-   echo Cannot determine the version of udev installed this system... exiting.
-   exit 1
+   # nobody has that old version, anyway.
+   ver=54
 fi
 
 # udev versions prior to 055 use a single '=' for matching key values
@@ -31,5 +31,5 @@
 KERNEL${match}"zap[0-9]*", NAME="zap/%n"
 
 # zaptel devices with ownership/permissions for running as non-root
-SUBSYSTEM=="zaptel",  OWNER="asterisk", GROUP="asterisk", MODE="0660"
+SUBSYSTEM${match}"zaptel",  OWNER="asterisk", GROUP="asterisk", MODE="0660"
 EOF




More information about the zaptel-commits mailing list