From 9288979fd4333f7afbd5a4838b678634f7d8a375 Mon Sep 17 00:00:00 2001 From: "Kevin P. Fleming" Date: Fri, 23 May 2008 14:32:43 +0000 Subject: add configure script git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4337 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- build_tools/genudevrules | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100755 build_tools/genudevrules (limited to 'build_tools/genudevrules') diff --git a/build_tools/genudevrules b/build_tools/genudevrules new file mode 100755 index 0000000..17e1f90 --- /dev/null +++ b/build_tools/genudevrules @@ -0,0 +1,35 @@ +#!/bin/sh + +ver=`udevinfo -V | cut -f3 -d" "` + +if [ -z "${ver}" ]; then + # nobody has that old version, anyway. + ver=54 +fi + +# udev versions prior to 055 use a single '=' for matching key values +# udev versions 055 and later support '==' for that purpose, and versions +# beyond 092 will probably make it mandatory +# +# very old versions of udev required naming rules and permissions rules to be +# in separate files, but it's not clear at what version number that changed + +if [ ${ver} -gt 54 ]; then + match="==" +else + match="=" +fi + +cat <