hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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