summaryrefslogtreecommitdiffstats
path: root/meta-openembedded/meta-oe/recipes-support/openct/openct/etc-openct_usb.in-modify-UDEVINFO.patch
blob: d5e3fe5753093fe775ae5b3e9441de3bbfa1c86e (plain)
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
35
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

OpenPOWER on IntegriCloud