From d93985a137b553b2723235d03bda341dab14064f Mon Sep 17 00:00:00 2001
From: Li xin <lixin.fnst@cn.fujitsu.com>
Date: Fri, 5 Dec 2014 02:04:03 +0900
Subject: [PATCH 2/2] etc/openct_usb.in: modify UDEVINFO

this patch is from Fedora

Upstream-Status: Pending

Signed-off-by: Li Xin <lixin.fnst@cn.fujitsu.com>
---
 etc/openct_usb.in | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/etc/openct_usb.in b/etc/openct_usb.in
index 32f91aa..917467d 100644
--- a/etc/openct_usb.in
+++ b/etc/openct_usb.in
@@ -15,10 +15,10 @@ if [ -z "$DEVNAME" ]; then
 	# Guess udev info interface.
 	# Newer udev uses udevadm
 	#
-	if which udevinfo > /dev/null 2>&1; then
-		UDEVINFO="udevinfo"
-	else
+	if which udevadm > /dev/null 2>&1; then
 		UDEVINFO="udevadm info"
+	else
+		UDEVINFO="udevinfo"
 	fi
 	DEVNAME=/dev/$($UDEVINFO --query=name --path=$(dirname $DEVPATH))
 fi
-- 
1.8.4.2

