[svn-commits] qwell: linux/trunk r5124 - /linux/trunk/build_tools/genudevrules
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Wed Oct 22 13:49:41 CDT 2008
Author: qwell
Date: Wed Oct 22 13:49:41 2008
New Revision: 5124
URL: http://svn.digium.com/view/dahdi?view=rev&rev=5124
Log:
Need to make sure we check for udevadm in addition to udevinfo.
Some silly person (or people) decided that it wasn't useful to have in their distro...
*cough*
Modified:
linux/trunk/build_tools/genudevrules
Modified: linux/trunk/build_tools/genudevrules
URL: http://svn.digium.com/view/dahdi/linux/trunk/build_tools/genudevrules?view=diff&rev=5124&r1=5123&r2=5124
==============================================================================
--- linux/trunk/build_tools/genudevrules (original)
+++ linux/trunk/build_tools/genudevrules Wed Oct 22 13:49:41 2008
@@ -3,8 +3,13 @@
ver=`udevinfo -V | cut -f3 -d" "`
if [ -z "${ver}" ]; then
- # nobody has that old version, anyway.
- ver=54
+ # Not found - try udevadm
+ ver=`udevadm info -V | cut -f3 -d" "`
+
+ if [ -z "${ver}" ]; then
+ # nobody has that old version, anyway.
+ ver=54
+ fi
fi
# udev versions prior to 055 use a single '=' for matching key values
More information about the svn-commits
mailing list