From e49ce0e2098f8c304353a36fb584cc54b65a72d0 Mon Sep 17 00:00:00 2001 From: Jason Parker Date: Wed, 22 Oct 2008 18:49:41 +0000 Subject: 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 --- build_tools/genudevrules | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'build_tools') 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 -- cgit v1.2.3