summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Parker <jparker@digium.com>2008-10-22 18:49:41 +0000
committerJason Parker <jparker@digium.com>2008-10-22 18:49:41 +0000
commit5e20ff30de6af0377bd53cfa5e29e71695093955 (patch)
tree796f1ed8c217a91e93b6571d14ef368ca1b08d2c
parentc9c99eeb08f215032a94e2f19025a6c293573a1f (diff)
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* git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5124 a0bf4364-ded3-4de4-8d8a-66a801d63aff
-rwxr-xr-xbuild_tools/genudevrules9
1 files changed, 7 insertions, 2 deletions
diff --git a/build_tools/genudevrules b/build_tools/genudevrules
index 0b5eec2..cfd3c90 100755
--- a/build_tools/genudevrules
+++ b/build_tools/genudevrules
@@ -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