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
commite49ce0e2098f8c304353a36fb584cc54b65a72d0 (patch)
tree796f1ed8c217a91e93b6571d14ef368ca1b08d2c
parent2f08bb59ba8dea292b9a6456a21471864b1d6397 (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