diff options
author | Jason Parker <jparker@digium.com> | 2008-10-22 18:49:41 +0000 |
---|---|---|
committer | Jason Parker <jparker@digium.com> | 2008-10-22 18:49:41 +0000 |
commit | e49ce0e2098f8c304353a36fb584cc54b65a72d0 (patch) | |
tree | 796f1ed8c217a91e93b6571d14ef368ca1b08d2c | |
parent | 2f08bb59ba8dea292b9a6456a21471864b1d6397 (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-x | build_tools/genudevrules | 9 |
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 |