summaryrefslogtreecommitdiff
path: root/packaging/generic
diff options
context:
space:
mode:
authorMarcus Meissner <marcus@jet.franken.de>2008-10-23 12:05:31 +0000
committerMarcus Meissner <marcus@jet.franken.de>2008-10-23 12:05:31 +0000
commitb876edf30094e7caaca69fc3392f0f4cde07e6ff (patch)
tree5b656a9955247aa90f1265fcec5b48717098f7ed /packaging/generic
parenta96dbce82d8cb4c169b1c294f168b36ba8d3d63e (diff)
downloadlibgphoto2-b876edf30094e7caaca69fc3392f0f4cde07e6ff.tar.gz
SYSDEVPATH -> DEVPATH
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@11497 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'packaging/generic')
-rw-r--r--packaging/generic/check-ptp-camera4
1 files changed, 2 insertions, 2 deletions
diff --git a/packaging/generic/check-ptp-camera b/packaging/generic/check-ptp-camera
index 625fb6e84..8750601e8 100644
--- a/packaging/generic/check-ptp-camera
+++ b/packaging/generic/check-ptp-camera
@@ -3,8 +3,8 @@
# check if any interface of this device is a PTP camera interface (06)
INTERFACE="${1:-06/01/01}"
-BASENAME=${PHYSDEVPATH##*/}
-for d in /sys/${PHYSDEVPATH}/${BASENAME}:*; do
+BASENAME=${DEVPATH##*/}
+for d in /sys/${DEVPATH}/${BASENAME}:*; do
[[ -d ${d} ]] || continue
INTERFACEID="$(< ${d}/bInterfaceClass)"
INTERFACEID="${INTERFACEID}/$(< ${d}/bInterfaceSubClass)"